diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:47:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:47:35 +0300 |
commit | 7f9d948a34c0afeb2fbf3e663d058048248b622f (patch) | |
tree | e39b895cf4b6fd8391474f139e794751dd28ae52 /src/resources/resourcemanager.cpp | |
parent | 05f6f3e94abc5c1e1801d62100cef494e2711474 (diff) | |
download | plus-7f9d948a34c0afeb2fbf3e663d058048248b622f.tar.gz plus-7f9d948a34c0afeb2fbf3e663d058048248b622f.tar.bz2 plus-7f9d948a34c0afeb2fbf3e663d058048248b622f.tar.xz plus-7f9d948a34c0afeb2fbf3e663d058048248b622f.zip |
Add missing const and static into resource classes.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 4cc7a4574..954930b64 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -399,7 +399,7 @@ bool ResourceManager::exists(const std::string &path) const return PhysFs::exists(path.c_str()); } -bool ResourceManager::existsLocal(const std::string &path) const +bool ResourceManager::existsLocal(const std::string &path) { bool flg(false); std::fstream file; @@ -415,7 +415,7 @@ bool ResourceManager::isDirectory(const std::string &path) const return PhysFs::isDirectory(path.c_str()); } -std::string ResourceManager::getPath(const std::string &file) const +std::string ResourceManager::getPath(const std::string &file) { // get the real path to the file const char *const tmp = PhysFs::getRealDir(file.c_str()); @@ -982,7 +982,7 @@ void *ResourceManager::loadFile(const std::string &fileName, int &fileSize) } bool ResourceManager::copyFile(const std::string &restrict src, - const std::string &restrict dst) const + const std::string &restrict dst) { PHYSFS_file *const srcFile = PhysFs::openRead(src.c_str()); if (!srcFile) @@ -1054,7 +1054,7 @@ bool ResourceManager::loadTextFileLocal(const std::string &fileName, void ResourceManager::saveTextFile(std::string path, const std::string &restrict name, - const std::string &restrict text) const + const std::string &restrict text) { if (!mkdir_r(path.c_str())) { |