summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:34 +0300
commitdc569bbcb4c12a5a400f9e5701e5c1027badadae (patch)
tree9b502cafda345e7fb4b0342de97c77822544d9fd /src/resources/resourcemanager.cpp
parent88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (diff)
downloadplus-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.gz
plus-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.bz2
plus-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.xz
plus-dc569bbcb4c12a5a400f9e5701e5c1027badadae.zip
Fix code style in resources.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 4eca5552e..a65fc508c 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -599,15 +599,15 @@ struct DyedImageLoader
if (!rl->manager)
return nullptr;
- std::string path = rl->path;
- const size_t p = path.find('|');
+ std::string path1 = rl->path;
+ const size_t p = path1.find('|');
Dye *d = nullptr;
if (p != std::string::npos)
{
- d = new Dye(path.substr(p + 1));
- path = path.substr(0, p);
+ d = new Dye(path1.substr(p + 1));
+ path1 = path1.substr(0, p);
}
- SDL_RWops *const rw = MPHYSFSRWOPS_openRead(path.c_str());
+ SDL_RWops *const rw = MPHYSFSRWOPS_openRead(path1.c_str());
if (!rw)
{
delete d;