From 2959549f837093147fb92b4054087ce0706d92bb Mon Sep 17 00:00:00 2001 From: rpechayr Date: Thu, 24 Jun 2010 05:04:36 +0000 Subject: [PATCH] [cpp] added const qualifiers that had been removed (accidentaly\?) to LuminanceSourse pure virtual methods. Fixed build problem of ScanTest. Please check that ScanTest builds if you revert this, it will consist of removing const qualifyers to implementation these methods in sublass of LuminancesSource git-svn-id: https://zxing.googlecode.com/svn/trunk@1461 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- cpp/core/src/zxing/LuminanceSource.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/core/src/zxing/LuminanceSource.h b/cpp/core/src/zxing/LuminanceSource.h index e23621ef9..d39f06f38 100644 --- a/cpp/core/src/zxing/LuminanceSource.h +++ b/cpp/core/src/zxing/LuminanceSource.h @@ -30,10 +30,10 @@ public: LuminanceSource(); virtual ~LuminanceSource(); - virtual int getWidth() = 0; - virtual int getHeight() = 0; + virtual int getWidth() const = 0; + virtual int getHeight() const = 0; - virtual unsigned char getPixel(int x, int y) = 0; + virtual unsigned char getPixel(int x, int y) const = 0; virtual unsigned char* copyMatrix(); };