summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:47:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:47:35 +0300
commit7f9d948a34c0afeb2fbf3e663d058048248b622f (patch)
treee39b895cf4b6fd8391474f139e794751dd28ae52 /src/resources/resourcemanager.h
parent05f6f3e94abc5c1e1801d62100cef494e2711474 (diff)
downloadplus-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.h')
-rw-r--r--src/resources/resourcemanager.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index 72cad5988..2398cf212 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -122,7 +122,7 @@ class ResourceManager final
/**
* Checks whether the given file or directory exists
*/
- bool existsLocal(const std::string &path) const A_WARN_UNUSED;
+ static bool existsLocal(const std::string &path) A_WARN_UNUSED;
/**
* Checks whether the given path is a directory.
@@ -136,7 +136,7 @@ class ResourceManager final
* @param file The file to get the real path to.
* @return The real path.
*/
- std::string getPath(const std::string &file) const A_WARN_UNUSED;
+ static std::string getPath(const std::string &file) A_WARN_UNUSED;
/**
* Creates a resource and adds it to the resource map.
@@ -184,8 +184,8 @@ class ResourceManager final
* @return true on success, false on failure. An error message should be
* in the log file.
*/
- bool copyFile(const std::string &restrict src,
- const std::string &restrict dst) const;
+ static bool copyFile(const std::string &restrict src,
+ const std::string &restrict dst);
/**
* Convenience wrapper around ResourceManager::get for loading
@@ -274,8 +274,9 @@ class ResourceManager final
static bool loadTextFileLocal(const std::string &fileName,
StringVect &lines);
- void saveTextFile(std::string path, const std::string &restrict name,
- const std::string &restrict text) const;
+ static void saveTextFile(std::string path,
+ const std::string &restrict name,
+ const std::string &restrict text);
Image *getRescaled(Image *const image,
const int width, const int height) A_WARN_UNUSED;