diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 23:40:41 +0300 |
commit | 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch) | |
tree | 68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/updaterwindow.h | |
parent | 41044107cc0a17125ebd806c9934b6eb636dafe6 (diff) | |
download | manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2 manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz manaverse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r-- | src/gui/updaterwindow.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h index 90bd06847..616b0d824 100644 --- a/src/gui/updaterwindow.h +++ b/src/gui/updaterwindow.h @@ -79,7 +79,7 @@ class UpdaterWindow : public Window, */ UpdaterWindow(const std::string &updateHost, const std::string &updatesDir, - bool applyUpdates, int updateType); + const bool applyUpdates, const int updateType); /** * Destructor @@ -89,7 +89,7 @@ class UpdaterWindow : public Window, /** * Set's progress bar status */ - void setProgress(float p); + void setProgress(const float p); /** * Set's label above progress @@ -117,13 +117,16 @@ class UpdaterWindow : public Window, void handleLink(const std::string &link, gcn::MouseEvent *event A_UNUSED); - static void loadLocalUpdates(std::string dir); + static void loadLocalUpdates(const std::string &dir); - static void addUpdateFile(ResourceManager *resman, std::string path, - std::string fixPath, std::string file, - bool append); + static void addUpdateFile(ResourceManager *const resman, + const std::string &path, + const std::string &fixPath, + const std::string &file, + const bool append); - static void loadManaPlusUpdates(std::string dir, ResourceManager *resman); + static void loadManaPlusUpdates(const std::string &dir, + ResourceManager *const resman); int updateState; @@ -148,7 +151,8 @@ private: static size_t memoryWrite(void *ptr, size_t size, size_t nmemb, void *stream); - bool validateFile(std::string filePath, unsigned long hash); + static bool validateFile(const std::string &filePath, + const unsigned long hash); enum UpdateDownloadStatus { |