summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 21:24:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 21:24:10 +0300
commit47a9f98c414b029ec6772a07597950b9ec19c6f8 (patch)
treec1a851cfc476d0c4bec6f20799602062fa69a136 /src/gui
parent23d938f903653d9e1a255df928116e540eb6cc55 (diff)
downloadmanaplus-47a9f98c414b029ec6772a07597950b9ec19c6f8.tar.gz
manaplus-47a9f98c414b029ec6772a07597950b9ec19c6f8.tar.bz2
manaplus-47a9f98c414b029ec6772a07597950b9ec19c6f8.tar.xz
manaplus-47a9f98c414b029ec6772a07597950b9ec19c6f8.zip
add restrict into chatwindow.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp4
-rw-r--r--src/gui/windows/chatwindow.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 40cf8e294..ea7a372d4 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1089,8 +1089,8 @@ void ChatWindow::setVisible(bool visible)
mTmpVisible = false;
}
-void ChatWindow::addWhisper(const std::string &nick,
- const std::string &mes, const Own own)
+void ChatWindow::addWhisper(const std::string &restrict nick,
+ const std::string &restrict mes, const Own own)
{
if (mes.empty() || !player_node)
return;
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 648f57cf6..d93e2ce94 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -220,7 +220,8 @@ class ChatWindow final : public Window,
void doPresent() const;
- void addWhisper(const std::string &nick, const std::string &mes,
+ void addWhisper(const std::string &restrict nick,
+ const std::string &restrict mes,
const Own own = BY_OTHER);
WhisperTab *addWhisperTab(const std::string &nick,