mirror of https://github.com/status-im/qzxing.git
added const qualifier to BitArray::toBytes
This commit is contained in:
parent
b0ea32e95c
commit
66e7668815
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue