diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
commit | 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (patch) | |
tree | 2053748aba4fd1e01020effe9322757426354d28 /src/gui/windows/serverdialog.cpp | |
parent | 2577a25f8a4acf587526809fda2ded95875e1222 (diff) | |
download | manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.gz manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.bz2 manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.xz manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.zip |
Add missing const in gui directory.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index f4cd045c3..b52793f05 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -570,8 +570,8 @@ void ServerDialog::loadServers(const bool addNew) MutexLocker tempLock(&mMutex); // Add the server to the local list if it's not already present bool found = false; - for (unsigned int i = 0, sz = CAST_U32( - mServers.size()); i < sz; i++) + for (unsigned int i = 0, fsz = CAST_U32( + mServers.size()); i < fsz; i++) { if (mServers[i] == server) { @@ -660,8 +660,8 @@ void ServerDialog::saveCustomServers(const ServerInfo ¤tServer, int savedServerCount = 0; - for (unsigned i = 0, sz = CAST_U32(mServers.size()); - i < sz && savedServerCount < MAX_SERVERLIST; ++ i) + for (unsigned i = 0, fsz = CAST_U32(mServers.size()); + i < fsz && savedServerCount < MAX_SERVERLIST; ++ i) { const ServerInfo &server = mServers.at(i); @@ -695,9 +695,9 @@ void ServerDialog::saveCustomServers(const ServerInfo ¤tServer, } int ServerDialog::downloadUpdate(void *ptr, - DownloadStatusT status, + const DownloadStatusT status, size_t total, - size_t remaining) + const size_t remaining) { if (!ptr || status == DownloadStatus::Cancelled) return -1; |