Fix some warnings pointed by Clang
Former-commit-id: 2e2e0a23d3b4115b584743f100ca05fa404a4e9a [formerly 02f505dd5b7c70682e035ddabaa7731fe09d8452] [formerly bccc66f75a5ad50f88043a502c3cae1395889740 [formerly 294134ecf2220589b85d6950054591ce02e596ec]] Former-commit-id: 9d8d7699eaf4128b3519b3d33b6f5a20bf16f30f [formerly d84e10bdcb4faf5cd48d639bab06544b6fc7bda1] Former-commit-id: d73659592f82b0416b2ca6f2b406f744e68c4d45
This commit is contained in:
parent
fc3fb062e0
commit
05f7c52378
|
|
@ -51,7 +51,7 @@ namespace Ndk
|
||||||
inline bool IsVisible() const;
|
inline bool IsVisible() const;
|
||||||
|
|
||||||
void SendCharacter(char32_t character);
|
void SendCharacter(char32_t character);
|
||||||
void SendEvent(Nz::WindowEvent event);
|
void SendEvent(const Nz::WindowEvent& event);
|
||||||
|
|
||||||
void SetCharacterSize(unsigned int size);
|
void SetCharacterSize(unsigned int size);
|
||||||
void SetSize(const Nz::Vector2f& size);
|
void SetSize(const Nz::Vector2f& size);
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ namespace Ndk
|
||||||
* \param event Event to be takin into consideration by the console
|
* \param event Event to be takin into consideration by the console
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void Console::SendEvent(Nz::WindowEvent event)
|
void Console::SendEvent(const Nz::WindowEvent& event)
|
||||||
{
|
{
|
||||||
switch (event.type)
|
switch (event.type)
|
||||||
{
|
{
|
||||||
|
|
@ -204,6 +204,9 @@ namespace Ndk
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,9 @@ namespace Ndk
|
||||||
|
|
||||||
return &m_componentBinding[it->second];
|
return &m_componentBinding[it->second];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
instance.Error("Invalid component index at #" + Nz::String::Number(argIndex));
|
instance.Error("Invalid component index at #" + Nz::String::Number(argIndex));
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
// This file is part of the "Nazara Engine - Noise module"
|
// This file is part of the "Nazara Engine - Noise module"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#ifndef SIMPLEX_HPP
|
#ifndef NAZARA_SIMPLEX_HPP
|
||||||
#define SIMPLE_HPP
|
#define NAZARA_SIMPLEX_HPP
|
||||||
|
|
||||||
#include <Nazara/Prerequesites.hpp>
|
#include <Nazara/Prerequesites.hpp>
|
||||||
#include <Nazara/Noise/Config.hpp>
|
#include <Nazara/Noise/Config.hpp>
|
||||||
|
|
@ -25,4 +25,4 @@ namespace Nz
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SIMPLEX_HPP
|
#endif // NAZARA_SIMPLEX_HPP
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue