From d4ec28e02ce43c60a067fd0b6e80328c205b4b00 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 29 Jan 2016 16:56:18 +0300 Subject: [PATCH] Minor method signature fix. --- map/framework.cpp | 2 +- search/result.cpp | 2 +- search/result.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/map/framework.cpp b/map/framework.cpp index 401de4874c..6e168d32ba 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1172,7 +1172,7 @@ void Framework::LoadSearchResultMetadata(search::Result & res) const if (res.m_metadata.m_isInitialized) return; - FeatureID const id = res.GetFeatureID(); + FeatureID const & id = res.GetFeatureID(); if (id.IsValid()) { Index::FeaturesLoaderGuard loader(m_model.GetIndex(), id.m_mwmId); diff --git a/search/result.cpp b/search/result.cpp index d5b9fbc435..eceb9a28b5 100644 --- a/search/result.cpp +++ b/search/result.cpp @@ -84,7 +84,7 @@ bool Result::HasPoint() const return (GetResultType() != RESULT_SUGGEST_PURE); } -FeatureID Result::GetFeatureID() const +FeatureID const & Result::GetFeatureID() const { #if defined(DEBUG) auto const type = GetResultType(); diff --git a/search/result.hpp b/search/result.hpp index 6ca29d9ce6..7a29cc0a86 100644 --- a/search/result.hpp +++ b/search/result.hpp @@ -73,7 +73,7 @@ public: /// Feature id in mwm. /// @precondition GetResultType() == RESULT_FEATURE - FeatureID GetFeatureID() const; + FeatureID const & GetFeatureID() const; /// Center point of a feature. /// @precondition HasPoint() == true