aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/resourcemanager.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-06-23 15:49:21 +0100
committerYann Herklotz <ymherklotz@gmail.com>2018-06-23 15:49:21 +0100
commit9f92cab6b884711ca8be050b500a2880a955f001 (patch)
treefa0999a72436a81c82c49ba8dc473522ac30ceb6 /yage/core/resourcemanager.cpp
parent3702e753a5f7b31c31261c968757e19e808a84ec (diff)
downloadYAGE-9f92cab6b884711ca8be050b500a2880a955f001.tar.gz
YAGE-9f92cab6b884711ca8be050b500a2880a955f001.zip
Switching to east const
This is compared to const west, which is not very consistent, as const always acts on what is on its left, and if there isn't anything on the left, it will act on what is on its right. By always placing const on the right of what it should act on, the rule becomes more consistent.
Diffstat (limited to 'yage/core/resourcemanager.cpp')
-rw-r--r--yage/core/resourcemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yage/core/resourcemanager.cpp b/yage/core/resourcemanager.cpp
index 984b381c..f41a658c 100644
--- a/yage/core/resourcemanager.cpp
+++ b/yage/core/resourcemanager.cpp
@@ -15,7 +15,7 @@ namespace yage
TextureCache ResourceManager::texture_cache_;
-Texture ResourceManager::getTexture(const std::string &texture_path, int x,
+Texture ResourceManager::getTexture(std::string const &texture_path, int x,
int y)
{
return texture_cache_.getTexture(texture_path, x, y);