diff --git a/include/Nazara/Core/Bitset.hpp b/include/Nazara/Core/Bitset.hpp index c359181cc..bc1df0e27 100644 --- a/include/Nazara/Core/Bitset.hpp +++ b/include/Nazara/Core/Bitset.hpp @@ -63,9 +63,9 @@ class NzBitset void Swap(NzBitset& bitset); bool Test(unsigned int bit) const; - bool TestAll(); - bool TestAny(); - bool TestNone(); + bool TestAll() const; + bool TestAny() const; + bool TestNone() const; template T To() const; NzString ToString() const; diff --git a/include/Nazara/Core/Bitset.inl b/include/Nazara/Core/Bitset.inl index bcd0187ff..a02c16550 100644 --- a/include/Nazara/Core/Bitset.inl +++ b/include/Nazara/Core/Bitset.inl @@ -309,7 +309,7 @@ bool NzBitset::Test(unsigned int bit) const } template -bool NzBitset::TestAll() +bool NzBitset::TestAll() const { // Cas particulier du dernier bloc Block lastBlockMask = GetLastBlockMask(); @@ -325,7 +325,7 @@ bool NzBitset::TestAll() } template -bool NzBitset::TestAny() +bool NzBitset::TestAny() const { if (m_blocks.empty()) return false; @@ -340,7 +340,7 @@ bool NzBitset::TestAny() } template -bool NzBitset::TestNone() +bool NzBitset::TestNone() const { return !TestAny(); }