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 | |
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')
-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 | ||||
-rw-r--r-- | src/net/ea/gui/guildtab.cpp | 3 | ||||
-rw-r--r-- | src/net/ea/gui/guildtab.h | 4 | ||||
-rw-r--r-- | src/net/ea/gui/partytab.cpp | 3 | ||||
-rw-r--r-- | src/net/ea/gui/partytab.h | 4 |
9 files changed, 18 insertions, 16 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; } diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp index e0a8937d1..bc3cc170c 100644 --- a/src/net/ea/gui/guildtab.cpp +++ b/src/net/ea/gui/guildtab.cpp @@ -60,7 +60,8 @@ GuildTab::~GuildTab() CHECKLISTENERS } -bool GuildTab::handleCommand(const std::string &type, const std::string &args) +bool GuildTab::handleCommand(const std::string &restrict type, + const std::string &restrict args) { if (type == "help") { diff --git a/src/net/ea/gui/guildtab.h b/src/net/ea/gui/guildtab.h index edc8ca973..50932f632 100644 --- a/src/net/ea/gui/guildtab.h +++ b/src/net/ea/gui/guildtab.h @@ -40,8 +40,8 @@ class GuildTab : public ChatTab, public ConfigListener virtual ~GuildTab(); - 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/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp index f3c1d0377..2c1065784 100644 --- a/src/net/ea/gui/partytab.cpp +++ b/src/net/ea/gui/partytab.cpp @@ -86,7 +86,8 @@ void PartyTab::showHelp() chatLog(_("/exp > Show/change party experience sharing options")); } -bool PartyTab::handleCommand(const std::string &type, const std::string &args) +bool PartyTab::handleCommand(const std::string &restrict type, + const std::string &restrict args) { if (type == "help") { diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h index 1ab50a1b7..67136e05f 100644 --- a/src/net/ea/gui/partytab.h +++ b/src/net/ea/gui/partytab.h @@ -42,8 +42,8 @@ class PartyTab : public ChatTab, public ConfigListener 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_PARTY; } |