From 31f17b1b0b603cf63ea3f5d3b101ba1f321536fa Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 20 Jul 2017 14:13:22 +0300 Subject: Returning warning for unused Api::m_index. --- ugc/api.cpp | 2 +- ugc/api.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ugc') diff --git a/ugc/api.cpp b/ugc/api.cpp index 7ef72cc9ed..98d85ea2dd 100644 --- a/ugc/api.cpp +++ b/ugc/api.cpp @@ -17,7 +17,7 @@ Time FromDaysAgo(Time time, uint32_t days) } } // namespace -Api::Api(std::string const & filename) : m_storage(filename) {} +Api::Api(Index const & index, std::string const & filename) : m_index(index), m_storage(filename) {} void Api::GetUGC(FeatureID const & id, UGCCallback callback) { diff --git a/ugc/api.hpp b/ugc/api.hpp index 45525f76e5..67961893c2 100644 --- a/ugc/api.hpp +++ b/ugc/api.hpp @@ -18,7 +18,7 @@ public: using UGCCallback = std::function; using UGCUpdateCallback = std::function; - explicit Api(std::string const & filename); + explicit Api(Index const & index, std::string const & filename); void GetUGC(FeatureID const & id, UGCCallback callback); void GetUGCUpdate(FeatureID const & id, UGCUpdateCallback callback); @@ -34,6 +34,7 @@ private: void SetUGCUpdateImpl(FeatureID const & id, UGCUpdate const & ugc); + Index const & m_index; base::WorkerThread m_thread; Storage m_storage; }; -- cgit v1.2.3