From 305c5551ae6d85f3a5c35ffd9af63cc1390fbfa6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 19:01:57 +0300 Subject: add restrict into localplayer. --- src/being/localplayer.cpp | 5 +++-- src/being/localplayer.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 974660db3..e32b2d818 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1832,8 +1832,9 @@ void LocalPlayer::moveToHome() static const unsigned invertDirectionSize = 5; -void LocalPlayer::changeMode(unsigned *const var, const unsigned limit, - const char *const conf, +void LocalPlayer::changeMode(unsigned *restrict const var, + const unsigned limit, + const char *restrict const conf, std::string (LocalPlayer::*const func)(), const unsigned def, const bool save) diff --git a/src/being/localplayer.h b/src/being/localplayer.h index 712556ea8..95194a781 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -520,8 +520,8 @@ class LocalPlayer final : public Being, const unsigned index, const unsigned sz) const A_WARN_UNUSED; - void changeMode(unsigned *const var, const unsigned limit, - const char *const conf, + void changeMode(unsigned *restrict const var, const unsigned limit, + const char *restrict const conf, std::string (LocalPlayer::*const func)(), const unsigned def = 0, const bool save = true); -- cgit v1.2.3-70-g09d2