Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2016-06-10 18:08:47 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-06-30 14:47:45 +0300
commita9d57e8e8aaaba02aebcf9e749e6a653f4ab4442 (patch)
tree4561b9088f4e18d900a46af8dbff8d7454591734 /editor
parent1218f30c25d96025d15f01e0471af08c40c69e4b (diff)
Fix compiler warnings
Diffstat (limited to 'editor')
-rw-r--r--editor/user_stats.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp
index c905f460ea..22b5eddec6 100644
--- a/editor/user_stats.cpp
+++ b/editor/user_stats.cpp
@@ -179,8 +179,10 @@ string UserStatsLoader::GetUserName() const
bool UserStatsLoader::LoadFromSettings()
{
- uint32_t rating, changesCount;
- uint64_t lastUpdate;
+ uint32_t rating = 0;
+ uint32_t changesCount = 0;
+ uint64_t lastUpdate = 0;
+
if (!settings::Get(kSettingsUserName, m_userName) ||
!settings::Get(kSettingsChangesCount, changesCount) ||
!settings::Get(kSettingsRating, rating) ||