diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-26 13:39:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-26 13:39:16 +0300 |
commit | fede4529512844d69f1812133719029392e8e0aa (patch) | |
tree | 8aedd01508ce7c118f82f2996fa1a3a34acb1371 /src/gui/widgets | |
parent | a4553936a39b21589a5af8c1bdda3d1d99a825ca (diff) | |
download | mv-fede4529512844d69f1812133719029392e8e0aa.tar.gz mv-fede4529512844d69f1812133719029392e8e0aa.tar.bz2 mv-fede4529512844d69f1812133719029392e8e0aa.tar.xz mv-fede4529512844d69f1812133719029392e8e0aa.zip |
add restrict into chattab.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/chattab.h | 4 | ||||
-rw-r--r-- | src/gui/widgets/tabs/guildchattab.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/tabs/guildchattab.h | 4 | ||||
-rw-r--r-- | src/gui/widgets/tabs/whispertab.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/tabs/whispertab.h | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/widgets/tabs/chattab.h b/src/gui/widgets/tabs/chattab.h index b9f0dff10..5ddab84c3 100644 --- a/src/gui/widgets/tabs/chattab.h +++ b/src/gui/widgets/tabs/chattab.h @@ -122,8 +122,8 @@ class ChatTab : public Tab * @returns true if the command was handled * false if the command was not handled */ - virtual bool handleCommand(const std::string &type A_UNUSED, - const std::string &args A_UNUSED) + virtual bool handleCommand(const std::string &restrict type A_UNUSED, + const std::string &restrict args A_UNUSED) { return false; } /** diff --git a/src/gui/widgets/tabs/guildchattab.cpp b/src/gui/widgets/tabs/guildchattab.cpp index 69a4faaf3..aab9c6e62 100644 --- a/src/gui/widgets/tabs/guildchattab.cpp +++ b/src/gui/widgets/tabs/guildchattab.cpp @@ -52,8 +52,8 @@ GuildChatTab::~GuildChatTab() CHECKLISTENERS } -bool GuildChatTab::handleCommand(const std::string &type, - const std::string &args) +bool GuildChatTab::handleCommand(const std::string &restrict type, + const std::string &restrict args) { if (type == "help") { diff --git a/src/gui/widgets/tabs/guildchattab.h b/src/gui/widgets/tabs/guildchattab.h index 469a10936..b2e364038 100644 --- a/src/gui/widgets/tabs/guildchattab.h +++ b/src/gui/widgets/tabs/guildchattab.h @@ -37,8 +37,8 @@ class GuildChatTab final : public ChatTab, public ConfigListener ~GuildChatTab(); - bool handleCommand(const std::string &type, - const std::string &args) override final; + bool handleCommand(const std::string &restrict type, + const std::string &restrict args) override final; void showHelp() override; diff --git a/src/gui/widgets/tabs/whispertab.cpp b/src/gui/widgets/tabs/whispertab.cpp index 58849b623..d7243e2ab 100644 --- a/src/gui/widgets/tabs/whispertab.cpp +++ b/src/gui/widgets/tabs/whispertab.cpp @@ -102,8 +102,8 @@ void WhisperTab::showHelp() chatLog(_("/close > Close the whisper tab")); } -bool WhisperTab::handleCommand(const std::string &type, - const std::string &args) +bool WhisperTab::handleCommand(const std::string &restrict type, + const std::string &restrict args) { if (type == "help") { diff --git a/src/gui/widgets/tabs/whispertab.h b/src/gui/widgets/tabs/whispertab.h index db7233525..bf41e459d 100644 --- a/src/gui/widgets/tabs/whispertab.h +++ b/src/gui/widgets/tabs/whispertab.h @@ -38,8 +38,8 @@ class WhisperTab final : public ChatTab void showHelp() override final; - bool handleCommand(const std::string &type, - const std::string &args) override final; + bool handleCommand(const std::string &restrict type, + const std::string &restrict args) override final; int getType() const override final A_WARN_UNUSED { return ChatTab::TAB_WHISPER; } |