From b013dccdcde658b8e73818ba93988a53d4e1d7ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 18:51:50 +0300 Subject: add restrict into being. --- src/being/being.cpp | 4 ++-- src/being/being.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/being/being.cpp b/src/being/being.cpp index dab5227ba..ba2108402 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2856,8 +2856,8 @@ std::string Being::loadComment(const std::string &name, const int type) return ""; } -void Being::saveComment(const std::string &name, - const std::string &comment, const int type) +void Being::saveComment(const std::string &restrict name, + const std::string &restrict comment, const int type) { std::string dir; switch (type) diff --git a/src/being/being.h b/src/being/being.h index 9d595fa6f..08ac81e9e 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -803,8 +803,9 @@ class Being : public ActorSprite, public ConfigListener static std::string loadComment(const std::string &name, const int type) A_WARN_UNUSED; - static void saveComment(const std::string &name, - const std::string &comment, const int type); + static void saveComment(const std::string &restrict name, + const std::string &restrict comment, + const int type); bool isAdvanced() const A_WARN_UNUSED { return mAdvanced; } -- cgit v1.2.3-70-g09d2