From 6f7e50348f6366e5bf7f3a20b2b65297c811f3ba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 23:04:28 +0300 Subject: add restrict into socialwindow. --- src/gui/windows/socialwindow.cpp | 8 ++++---- src/gui/windows/socialwindow.h | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index bc5c0b888..1ce3fbd07 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -1616,9 +1616,9 @@ void SocialWindow::showGuildCreate() mGuildCreateDialog->addActionListener(this); } -void SocialWindow::showGuildInvite(const std::string &guildName, +void SocialWindow::showGuildInvite(const std::string &restrict guildName, const int guildId, - const std::string &inviterName) + const std::string &restrict inviterName) { // check there isnt already an invite showing if (mGuildInvited != 0) @@ -1648,8 +1648,8 @@ void SocialWindow::showGuildInvite(const std::string &guildName, mGuildInvited = guildId; } -void SocialWindow::showPartyInvite(const std::string &partyName, - const std::string &inviter) +void SocialWindow::showPartyInvite(const std::string &restrict partyName, + const std::string &restrict inviter) { // check there isnt already an invite showing if (!mPartyInviter.empty()) diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h index bbd84bbdc..6cb1b252f 100644 --- a/src/gui/windows/socialwindow.h +++ b/src/gui/windows/socialwindow.h @@ -66,13 +66,14 @@ public: void action(const gcn::ActionEvent &event) override final; - void showGuildInvite(const std::string &guildName, const int guildId, - const std::string &inviterName); + void showGuildInvite(const std::string &restrict guildName, + const int guildId, + const std::string &restrict inviterName); void showGuildCreate(); - void showPartyInvite(const std::string &partyName, - const std::string &inviter = ""); + void showPartyInvite(const std::string &restrict partyName, + const std::string &restrict inviter = ""); void showPartyCreate(); -- cgit v1.2.3-60-g2f50