forked from organicmaps/organicmaps
Minor method signature fix.
This commit is contained in:
parent
8902973ee4
commit
d4ec28e02c
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue