diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:46:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:46:32 +0300 |
commit | 11caa7aeeb3a7b40823da8573576d2354b7504b5 (patch) | |
tree | fe34c20ea973e65104747b59675acf6363e7b5d2 /src/gui/windows/chatwindow.cpp | |
parent | 0c4ed5a9594b849b436fca13c6992dee923915ed (diff) | |
download | plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.gz plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.bz2 plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.xz plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.zip |
Add missing const and static into gui classes.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 6af18ff06..955171bea 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -452,7 +452,7 @@ ChatTab *ChatWindow::getFocused() const return static_cast<ChatTab*>(mChatTabs->getSelectedTab()); } -void ChatWindow::clearTab(ChatTab *const tab) const +void ChatWindow::clearTab(ChatTab *const tab) { if (tab) tab->clearText(); @@ -1386,7 +1386,7 @@ void ChatWindow::autoComplete() } std::string ChatWindow::autoComplete(StringVect &names, - std::string partName) const + std::string partName) { StringVectCIter i = names.begin(); const StringVectCIter i_end = names.end(); @@ -1770,7 +1770,7 @@ void ChatWindow::saveState() const } } -std::string ChatWindow::doReplace(const std::string &msg) const +std::string ChatWindow::doReplace(const std::string &msg) { std::string str = msg; replaceSpecialChars(str); @@ -1918,7 +1918,7 @@ void ChatWindow::updateVisibility() int mouseY = 0; int x = 0; int y = 0; - gui->getMouseState(&mouseX, &mouseY); + Gui::getMouseState(&mouseX, &mouseY); getAbsolutePosition(x, y); if (mChatInput->isVisible()) { |