From ea27bce049e73817b70e6df8dc1e131a0350efe2 Mon Sep 17 00:00:00 2001 From: Sergey Magidovich Date: Mon, 4 Jan 2016 10:17:34 +0300 Subject: [PATCH] Pass MwmId by const & in FeaturesLoaderGuard. --- indexer/index.cpp | 2 +- indexer/index.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer/index.cpp b/indexer/index.cpp index c004d14288..3eaefc7971 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -96,7 +96,7 @@ void Index::OnMwmDeregistered(LocalCountryFile const & localFile) // Index::FeaturesLoaderGuard implementation ////////////////////////////////////////////////////////////////////////////////// -Index::FeaturesLoaderGuard::FeaturesLoaderGuard(Index const & parent, MwmId id) +Index::FeaturesLoaderGuard::FeaturesLoaderGuard(Index const & parent, MwmId const & id) : m_handle(parent.GetMwmHandleById(id)), /// @note This guard is suitable when mwm is loaded m_vector(m_handle.GetValue()->m_cont, diff --git a/indexer/index.hpp b/indexer/index.hpp index 92ce9476a7..fd3cc43558 100644 --- a/indexer/index.hpp +++ b/indexer/index.hpp @@ -275,7 +275,7 @@ public: class FeaturesLoaderGuard { public: - FeaturesLoaderGuard(Index const & parent, MwmId id); + FeaturesLoaderGuard(Index const & parent, MwmId const & id); inline MwmSet::MwmId const & GetId() const { return m_handle.GetId(); } string GetCountryFileName() const;