summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 02:10:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 02:10:59 +0300
commit46f0755975033f37eaae9db73c0e2b6499c2a923 (patch)
tree5c13c361ce4a4e4fd0e07fca1953c54637965666 /src/gui/widgets/chattab.h
parent1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (diff)
downloadmanaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.gz
manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.bz2
manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.xz
manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/chattab.h')
-rw-r--r--src/gui/widgets/chattab.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index 27149a9f1..0b4a287d0 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -67,7 +67,8 @@ class ChatTab : public Tab
* @param removeColors try remove color if configured
*/
void chatLog(std::string line, Own own = BY_SERVER,
- bool ignoreRecord = false, bool tryRemoveColors = true);
+ const bool ignoreRecord = false,
+ const bool tryRemoveColors = true);
/**
* Adds the text to the message list
@@ -92,7 +93,7 @@ class ChatTab : public Tab
* up, positive numbers scroll down. The absolute amount indicates the
* amount of 1/8ths of chat window real estate that should be scrolled.
*/
- void scroll(int amount);
+ void scroll(const int amount);
/**
* Clears the text from the tab
@@ -145,19 +146,19 @@ class ChatTab : public Tab
bool getAllowHighlight() const
{ return mAllowHightlight; }
- void setAllowHighlight(bool n)
+ void setAllowHighlight(const bool n)
{ mAllowHightlight = n; }
bool getRemoveNames() const
{ return mRemoveNames; }
- void setRemoveNames(bool n)
+ void setRemoveNames(const bool n)
{ mRemoveNames = n; }
bool getNoAway() const
{ return mNoAway; }
- void setNoAway(bool n)
+ void setNoAway(const bool n)
{ mNoAway = n; }
void addNewRow(std::string &line);