Suppression of warnings

OffsetOf: use of static_cast
Updatable: API and virtual destructor
Drawable: virtual destructor
Vector: std::abs should be "the" abs.
AbstractClass: API
+Updatable: Like for others abstracts
Buffer: nullptr for pointer to function.
Image: wasn't returning a vector.

Former-commit-id: 57e0009286a02b9e3b0b81945e500d7d9e466ae2
This commit is contained in:
Gawaboumga
2015-01-21 13:51:49 +01:00
parent bce3cadfd5
commit 3933b07094
10 changed files with 20 additions and 45 deletions

View File

@@ -16,7 +16,7 @@ template <typename T, typename M> M NzImplGetMemberType(M T::*);
template <typename T, typename R, R T::*M>
constexpr std::size_t NzImplOffsetOf()
{
return reinterpret_cast<std::size_t>(&(((T*)0)->*M));
return reinterpret_cast<std::size_t>(&((static_cast<T*>(0))->*M));
}
#define NzOffsetOf(type, member) NzImplOffsetOf<decltype(NzImplGetClassType(&type::member)), decltype(NzImplGetMemberType(&type::member)), &type::member>()

View File

@@ -9,9 +9,12 @@
#include <Nazara/Prerequesites.hpp>
class NzUpdatable
class NAZARA_API NzUpdatable
{
public:
NzUpdatable() = default;
virtual ~NzUpdatable();
virtual void Update() = 0;
};