From d949db27719aeb5724e03536f7e86721bb78d78e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 00:37:05 +0300 Subject: add restrict into atlasmanager. --- src/resources/atlasmanager.cpp | 6 +++--- src/resources/atlasmanager.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/resources/atlasmanager.cpp b/src/resources/atlasmanager.cpp index 1fe2ff248..f1a67bfe5 100644 --- a/src/resources/atlasmanager.cpp +++ b/src/resources/atlasmanager.cpp @@ -131,9 +131,9 @@ void AtlasManager::loadImages(const StringVect &files, } } -void AtlasManager::simpleSort(const std::string &name, - std::vector &atlases, - std::vector &images, int size) +void AtlasManager::simpleSort(const std::string &restrict name, + std::vector &restrict atlases, + std::vector &restrict images, int size) { int x = 0; int y = 0; diff --git a/src/resources/atlasmanager.h b/src/resources/atlasmanager.h index bf95c5d1c..afd153602 100644 --- a/src/resources/atlasmanager.h +++ b/src/resources/atlasmanager.h @@ -112,9 +112,9 @@ class AtlasManager final static void loadImages(const StringVect &files, std::vector &images); - static void simpleSort(const std::string &name, - std::vector &atlases, - std::vector &images, int size); + static void simpleSort(const std::string &restrict name, + std::vector &restrict atlases, + std::vector &restrict images, int size); static SDL_Surface *createSDLAtlas(TextureAtlas *const atlas) A_WARN_UNUSED; -- cgit v1.2.3-60-g2f50