mirror of
https://github.com/status-im/qzxing.git
synced 2025-01-13 12:35:37 +00:00
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…
x
Reference in New Issue
Block a user