summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-26 13:39:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-26 13:39:16 +0300
commitfede4529512844d69f1812133719029392e8e0aa (patch)
tree8aedd01508ce7c118f82f2996fa1a3a34acb1371 /src/net/ea
parenta4553936a39b21589a5af8c1bdda3d1d99a825ca (diff)
downloadplus-fede4529512844d69f1812133719029392e8e0aa.tar.gz
plus-fede4529512844d69f1812133719029392e8e0aa.tar.bz2
plus-fede4529512844d69f1812133719029392e8e0aa.tar.xz
plus-fede4529512844d69f1812133719029392e8e0aa.zip
add restrict into chattab.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/gui/guildtab.cpp3
-rw-r--r--src/net/ea/gui/guildtab.h4
-rw-r--r--src/net/ea/gui/partytab.cpp3
-rw-r--r--src/net/ea/gui/partytab.h4
4 files changed, 8 insertions, 6 deletions
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; }