forked from organicmaps/organicmaps
Pass MwmId by const & in FeaturesLoaderGuard.
This commit is contained in:
parent
07dd52fb77
commit
ea27bce049
2 changed files with 2 additions and 2 deletions
|
@ -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<MwmValue>()->m_cont,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue