added const qualifier to BitArray::toBytes

This commit is contained in:
favoritas37 2015-06-14 20:44:29 +03:00
parent b0ea32e95c
commit 66e7668815
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ void BitArray::xor_(const BitArray& other)
}
}
void BitArray::toBytes(int bitOffset, std::vector<char>& array, int offset, int numBytes)
void BitArray::toBytes(int bitOffset, std::vector<char>& array, int offset, int numBytes) const
{
if(array.size() < (numBytes + offset))
array.resize(numBytes + offset);

View File

@ -68,7 +68,7 @@ public:
void xor_(const BitArray& other);
void toBytes(int bitOffset, std::vector<char>& array, int offset, int numBytes);
void toBytes(int bitOffset, std::vector<char>& array, int offset, int numBytes) const;
static ArrayRef<int> makeArray(int size) {
return ArrayRef<int>((size + 31) / 32);