diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-07-20 14:13:22 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2017-07-21 12:56:16 +0300 |
commit | 31f17b1b0b603cf63ea3f5d3b101ba1f321536fa (patch) | |
tree | 0cbf52644d1c87b2d4cec8778735730ca6a6e5b7 /ugc | |
parent | 6968c0ad2c3f9dccb78969d687c66dac6fc16a5a (diff) |
Returning warning for unused Api::m_index.
Diffstat (limited to 'ugc')
-rw-r--r-- | ugc/api.cpp | 2 | ||||
-rw-r--r-- | ugc/api.hpp | 3 |
2 files changed, 3 insertions, 2 deletions
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<void(UGC const &)>; using UGCUpdateCallback = std::function<void(UGCUpdate const &)>; - 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; }; |