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
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2017-12-19 14:25:40 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-12-19 16:28:12 +0300
commitcb2c8920881e877a36921260f9e96823eb3c6871 (patch)
treed2576bbdf9c056af674bf937482c8dcaf562d294 /local_ads
parent9d7092946ad908e4e75aaf05ce50a6e81ffcdccf (diff)
[local_ads] review fixes
Diffstat (limited to 'local_ads')
-rw-r--r--local_ads/statistics.cpp5
-rw-r--r--local_ads/statistics.hpp3
2 files changed, 4 insertions, 4 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp
index ae1e4e98f7..f60782684c 100644
--- a/local_ads/statistics.cpp
+++ b/local_ads/statistics.cpp
@@ -167,8 +167,9 @@ void Statistics::Startup()
SendToServer();
};
- auto const recursiveAsyncTask = [asyncTask]
+ auto const recursiveAsyncTask = [this, asyncTask]
{
+ IndexMetadata();
asyncTask();
GetPlatform().RunDelayedTask(Platform::Thread::File, kSendingTimeout, asyncTask);
};
@@ -494,7 +495,7 @@ void Statistics::CleanupAfterTesting()
GetPlatform().RmDirRecursively(statsFolder);
}
-void Statistics::SetCustomServerSerializer(ServerSerializer && serializer)
+void Statistics::SetCustomServerSerializer(ServerSerializer const & serializer)
{
GetPlatform().RunTask(Platform::Thread::File,
[this, serializer] { m_serverSerializer = serializer; });
diff --git a/local_ads/statistics.hpp b/local_ads/statistics.hpp
index f5a71353f0..0e870362e5 100644
--- a/local_ads/statistics.hpp
+++ b/local_ads/statistics.hpp
@@ -9,7 +9,6 @@
#include <functional>
#include <list>
#include <map>
-#include <mutex>
#include <string>
#include <vector>
@@ -38,7 +37,7 @@ public:
void SetUserId(std::string const & userId);
- void SetCustomServerSerializer(ServerSerializer && serializer);
+ void SetCustomServerSerializer(ServerSerializer const & serializer);
void RegisterEvent(Event && event);
void RegisterEvents(std::list<Event> && events);