summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-27 01:27:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-27 01:27:11 +0300
commitde476bb95242e10c833394ef007728072eabe60f (patch)
tree033747127a7ea4e36de42cfc99fcee56ce915bbb /src/gui/widgets
parenta33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (diff)
downloadmanaplus-de476bb95242e10c833394ef007728072eabe60f.tar.gz
manaplus-de476bb95242e10c833394ef007728072eabe60f.tar.bz2
manaplus-de476bb95242e10c833394ef007728072eabe60f.tar.xz
manaplus-de476bb95242e10c833394ef007728072eabe60f.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox.cpp2
-rw-r--r--src/gui/widgets/browserbox.h2
-rw-r--r--src/gui/widgets/chattab.h2
3 files changed, 3 insertions, 3 deletions
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<std::string> &getRows()
+ std::list<std::string> &getRows() const
{ return mTextOutput->getRows(); }
bool hasRows() const