From: Arnaud Giersch Date: Fri, 3 Dec 2010 08:40:51 +0000 (+0100) Subject: Mark getPointColor as const. X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/commitdiff_plain/fa4e18f5aa1e0f787885f5860a5f36af2db4cd39 Mark getPointColor as const. --- diff --git a/DrawingWindow.cpp b/DrawingWindow.cpp index f68f43b..dac4246 100644 --- a/DrawingWindow.cpp +++ b/DrawingWindow.cpp @@ -607,7 +607,7 @@ void DrawingWindow::drawTextBg(int x, int y, const std::string &text, int flags) * * \see setColor(unsigned int), setBgColor(unsigned int) */ -unsigned int DrawingWindow::getPointColor(int x, int y) +unsigned int DrawingWindow::getPointColor(int x, int y) const { return image->pixel(x, y); } diff --git a/DrawingWindow.h b/DrawingWindow.h index e44ea3b..c38d9bd 100644 --- a/DrawingWindow.h +++ b/DrawingWindow.h @@ -64,7 +64,7 @@ public: void drawTextBg(int x, int y, const char *text, int flags = 0); void drawTextBg(int x, int y, const std::string &text, int flags = 0); - unsigned int getPointColor(int x, int y); + unsigned int getPointColor(int x, int y) const; bool waitMousePress(int &x, int &y, int &button, unsigned long time = ULONG_MAX);