diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:16 +0300 |
commit | 88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch) | |
tree | b35a28cd317e2895c063749180b98edfe223c032 /src/gui/windows/socialwindow.cpp | |
parent | c24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff) | |
download | ManaVerse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz ManaVerse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2 ManaVerse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz ManaVerse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip |
Fix code style in gui.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index 3f6fe663d..6a17514d6 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -277,7 +277,9 @@ public: if (online0 || total0) { // TRANSLATORS: social window label - mCounterString = strprintf(_("Members: %u/%u"), online0, total0); + mCounterString = strprintf(_("Members: %u/%u"), + static_cast<uint32_t>(online0), + static_cast<uint32_t>(total0)); } else { @@ -299,7 +301,9 @@ public: } // TRANSLATORS: social window label - mCounterString = strprintf(_("Players: %u/%u"), online, total); + mCounterString = strprintf(_("Players: %u/%u"), + static_cast<uint32_t>(online), + static_cast<uint32_t>(total)); } updateCounter(); } @@ -369,7 +373,9 @@ public: } // TRANSLATORS: social window label - mCounterString = strprintf(_("Players: %u/%u"), online, total); + mCounterString = strprintf(_("Players: %u/%u"), + static_cast<uint32_t>(online), + static_cast<uint32_t>(total)); updateCounter(); } }; @@ -492,7 +498,9 @@ public: } // TRANSLATORS: social window label - mCounterString = strprintf(_("Players: %u/%u"), online, total); + mCounterString = strprintf(_("Players: %u/%u"), + static_cast<uint32_t>(online), + static_cast<uint32_t>(total)); updateCounter(); } @@ -781,7 +789,9 @@ public: socialWindow->setProcessedPortals(true); // TRANSLATORS: social window label - mCounterString = strprintf(_("Portals: %u/%u"), online, total); + mCounterString = strprintf(_("Portals: %u/%u"), + static_cast<uint32_t>(online), + static_cast<uint32_t>(total)); updateCounter(); } @@ -1157,7 +1167,9 @@ public: delete players; // TRANSLATORS: social window label - mCounterString = strprintf(_("Friends: %u/%u"), online, total); + mCounterString = strprintf(_("Friends: %u/%u"), + static_cast<uint32_t>(online), + static_cast<uint32_t>(total)); updateCounter(); } |