From 66e7668815a97076697b0db41940e771bc3e6d94 Mon Sep 17 00:00:00 2001 From: favoritas37 Date: Sun, 14 Jun 2015 20:44:29 +0300 Subject: [PATCH] added const qualifier to BitArray::toBytes --- source/zxing/zxing/common/BitArray.cpp | 2 +- source/zxing/zxing/common/BitArray.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/zxing/zxing/common/BitArray.cpp b/source/zxing/zxing/common/BitArray.cpp index 9330462..0cde919 100644 --- a/source/zxing/zxing/common/BitArray.cpp +++ b/source/zxing/zxing/common/BitArray.cpp @@ -204,7 +204,7 @@ void BitArray::xor_(const BitArray& other) } } -void BitArray::toBytes(int bitOffset, std::vector& array, int offset, int numBytes) +void BitArray::toBytes(int bitOffset, std::vector& array, int offset, int numBytes) const { if(array.size() < (numBytes + offset)) array.resize(numBytes + offset); diff --git a/source/zxing/zxing/common/BitArray.h b/source/zxing/zxing/common/BitArray.h index 3d34f08..bd25c24 100644 --- a/source/zxing/zxing/common/BitArray.h +++ b/source/zxing/zxing/common/BitArray.h @@ -68,7 +68,7 @@ public: void xor_(const BitArray& other); - void toBytes(int bitOffset, std::vector& array, int offset, int numBytes); + void toBytes(int bitOffset, std::vector& array, int offset, int numBytes) const; static ArrayRef makeArray(int size) { return ArrayRef((size + 31) / 32);