diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-04 23:47:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 23:47:11 +0300 |
commit | f24ddad3fa0f843eb29a281426151cf1a5f31f4b (patch) | |
tree | 6f3faaf38f069f1e88435b7c976ff4070b7a1dcb /src/gui/updaterwindow.cpp | |
parent | 3a407bb6b73a186eafd99bcec570f88097c4b2e1 (diff) | |
download | plus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.gz plus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.bz2 plus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.xz plus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.zip |
add const to more classes,
fix other small style issues.
Diffstat (limited to 'src/gui/updaterwindow.cpp')
-rw-r--r-- | src/gui/updaterwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp index 71e2a1022..496e651b3 100644 --- a/src/gui/updaterwindow.cpp +++ b/src/gui/updaterwindow.cpp @@ -514,7 +514,7 @@ void UpdaterWindow::download() void UpdaterWindow::loadUpdates() { - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); if (mUpdateFiles.empty()) { // updates not downloaded @@ -540,7 +540,7 @@ void UpdaterWindow::loadUpdates() void UpdaterWindow::loadLocalUpdates(const std::string &dir) { - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); std::vector<updateFile> updateFiles = loadXMLFile(dir + "/" + xmlUpdateFile); @@ -564,7 +564,7 @@ void UpdaterWindow::loadLocalUpdates(const std::string &dir) } void UpdaterWindow::loadManaPlusUpdates(const std::string &dir, - ResourceManager *const resman) + const ResourceManager *const resman) { std::string fixPath = dir + "/fix"; std::vector<updateFile> updateFiles @@ -584,7 +584,7 @@ void UpdaterWindow::loadManaPlusUpdates(const std::string &dir, } } -void UpdaterWindow::addUpdateFile(ResourceManager *const resman, +void UpdaterWindow::addUpdateFile(const ResourceManager *const resman, const std::string &path, const std::string &fixPath, const std::string &file, |