From de476bb95242e10c833394ef007728072eabe60f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Aug 2012 01:27:11 +0300 Subject: Add const to more classes. --- src/gui/widgets/browserbox.cpp | 2 +- src/gui/widgets/browserbox.h | 2 +- src/gui/widgets/chattab.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index df99905b7..387e96da4 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -658,7 +658,7 @@ void BrowserBox::updateHeight() } } -std::string BrowserBox::getTextAtPos(const int x, const int y) +std::string BrowserBox::getTextAtPos(const int x, const int y) const { int textX = 0; int textY = 0; diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index edea47ddf..c19256afa 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -200,7 +200,7 @@ class BrowserBox : public gcn::Widget, void setEnableImages(bool n) { mEnableImages = n; } - std::string getTextAtPos(const int x, const int y); + std::string getTextAtPos(const int x, const int y) const; private: int calcHeight(); diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 09f2b35ee..27149a9f1 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -134,7 +134,7 @@ class ChatTab : public Tab virtual void saveToLogFile(std::string &msg); - std::list &getRows() + std::list &getRows() const { return mTextOutput->getRows(); } bool hasRows() const -- cgit v1.2.3-70-g09d2