Core/Bitset: Fixed Test methods being not const

Former-commit-id: 440c03a78b4dcf8ec1566c1db30989c0145b5a78
This commit is contained in:
Lynix 2015-05-03 19:54:35 +02:00
parent 47c5d1072b
commit 8b5deffe35
2 changed files with 6 additions and 6 deletions

View File

@ -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<typename T> T To() const;
NzString ToString() const;

View File

@ -309,7 +309,7 @@ bool NzBitset<Block, Allocator>::Test(unsigned int bit) const
}
template<typename Block, class Allocator>
bool NzBitset<Block, Allocator>::TestAll()
bool NzBitset<Block, Allocator>::TestAll() const
{
// Cas particulier du dernier bloc
Block lastBlockMask = GetLastBlockMask();
@ -325,7 +325,7 @@ bool NzBitset<Block, Allocator>::TestAll()
}
template<typename Block, class Allocator>
bool NzBitset<Block, Allocator>::TestAny()
bool NzBitset<Block, Allocator>::TestAny() const
{
if (m_blocks.empty())
return false;
@ -340,7 +340,7 @@ bool NzBitset<Block, Allocator>::TestAny()
}
template<typename Block, class Allocator>
bool NzBitset<Block, Allocator>::TestNone()
bool NzBitset<Block, Allocator>::TestNone() const
{
return !TestAny();
}