diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-08-02 13:38:34 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-08-02 15:29:54 +0300 |
commit | 2b9995ed9f4fa99a5105b2a1311258ff60ab05e6 (patch) | |
tree | fd9d6668ff5768ef58cd35dc00e4e9b665b73494 /search | |
parent | 7d04461840a5d6ffa5835a26eef241f9d51f35c4 (diff) |
Fixing dangling refs in CategoriesCache.
Diffstat (limited to 'search')
-rw-r--r-- | search/cities_boundaries_table.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/search/cities_boundaries_table.cpp b/search/cities_boundaries_table.cpp index 07a2e3d8bf..295e0d4796 100644 --- a/search/cities_boundaries_table.cpp +++ b/search/cities_boundaries_table.cpp @@ -44,7 +44,8 @@ bool CitiesBoundariesTable::Load() return true; MwmContext context(move(handle)); - auto const localities = CategoriesCache(LocalitiesSource{}, ::base::Cancellable{}).Get(context); + ::base::Cancellable const cancellable; + auto const localities = CategoriesCache(LocalitiesSource{}, cancellable).Get(context); auto const & cont = context.m_value.m_cont; |