Minor method signature fix.

This commit is contained in:
Alex Zolotarev 2016-01-29 16:56:18 +03:00 committed by Sergey Yershov
parent 8902973ee4
commit d4ec28e02c
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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();

View file

@ -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