From 8b5deffe351c696e5e21427d1ed640e0ad79855c Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 3 May 2015 19:54:35 +0200 Subject: [PATCH] Core/Bitset: Fixed Test methods being not const Former-commit-id: 440c03a78b4dcf8ec1566c1db30989c0145b5a78 --- include/Nazara/Core/Bitset.hpp | 6 +++--- include/Nazara/Core/Bitset.inl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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(); }