From fede4529512844d69f1812133719029392e8e0aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Dec 2013 13:39:16 +0300 Subject: add restrict into chattab. --- src/gui/widgets/tabs/chattab.h | 4 ++-- src/gui/widgets/tabs/guildchattab.cpp | 4 ++-- src/gui/widgets/tabs/guildchattab.h | 4 ++-- src/gui/widgets/tabs/whispertab.cpp | 4 ++-- src/gui/widgets/tabs/whispertab.h | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/gui/widgets') 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; } -- cgit v1.2.3-70-g09d2