From ab0b7e825a68e248be2e7bea6e3b3092366a210e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 23:26:55 +0300 Subject: add restrict into whoisonline. --- src/gui/windows/whoisonline.cpp | 13 +++++++------ src/gui/windows/whoisonline.h | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 2e32e13fe..52b515c81 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -201,10 +201,10 @@ void WhoIsOnline::handleLink(const std::string& link, gcn::MouseEvent *event) } } -void WhoIsOnline::updateWindow(std::vector &friends, - std::vector &neutral, - std::vector &disregard, - std::vector enemy, +void WhoIsOnline::updateWindow(std::vector &restrict friends, + std::vector &restrict neutral, + std::vector &restrict disregard, + std::vector &restrict enemy, size_t numOnline) { // Set window caption @@ -733,9 +733,10 @@ void WhoIsOnline::updateSize() mBrowserBox->setWidth(area.width - 10); } -const std::string WhoIsOnline::prepareNick(const std::string &nick, +const std::string WhoIsOnline::prepareNick(const std::string &restrict nick, const int level, - const std::string &color) const + const std::string &restrict + color) const { const std::string text = encodeLinkText(nick); if (mShowLevel && level > 1) diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h index 60aa67e93..5be22c73d 100644 --- a/src/gui/windows/whoisonline.h +++ b/src/gui/windows/whoisonline.h @@ -173,14 +173,15 @@ private: static size_t memoryWrite(void *ptr, size_t size, size_t nmemb, FILE *stream); - const std::string prepareNick(const std::string &nick, const int level, - const std::string &color) + const std::string prepareNick(const std::string &restrict nick, + const int level, + const std::string &restrict color) const A_WARN_UNUSED; - void updateWindow(std::vector &friends, - std::vector &neutral, - std::vector &disregard, - std::vector enemy, + void updateWindow(std::vector &restrict friends, + std::vector &restrict neutral, + std::vector &restrict disregard, + std::vector &restrict enemy, size_t numOnline); enum DownloadStatus -- cgit v1.2.3-60-g2f50