diff --git a/cpp/core/src/zxing/oned/UPCEANReader.cpp b/cpp/core/src/zxing/oned/UPCEANReader.cpp index 9fe36db70..962d71ae7 100644 --- a/cpp/core/src/zxing/oned/UPCEANReader.cpp +++ b/cpp/core/src/zxing/oned/UPCEANReader.cpp @@ -82,7 +82,7 @@ namespace zxing { }; - const int UPCEANReader::getMIDDLE_PATTERN_LEN() { + int UPCEANReader::getMIDDLE_PATTERN_LEN() { return MIDDLE_PATTERN_LEN; } diff --git a/cpp/core/src/zxing/oned/UPCEANReader.h b/cpp/core/src/zxing/oned/UPCEANReader.h index 9773de09a..a9e1f9b4b 100644 --- a/cpp/core/src/zxing/oned/UPCEANReader.h +++ b/cpp/core/src/zxing/oned/UPCEANReader.h @@ -48,7 +48,7 @@ namespace zxing { static bool findGuardPattern(Ref row, int rowOffset, bool whiteFirst, const int pattern[], int patternLen, int* start, int* end); - virtual const int getMIDDLE_PATTERN_LEN(); + virtual int getMIDDLE_PATTERN_LEN(); virtual const int* getMIDDLE_PATTERN(); public: