forked from organicmaps/organicmaps
Use universal reference.
This commit is contained in:
parent
6896df7725
commit
ed2cbacf0a
2 changed files with 3 additions and 3 deletions
|
@ -209,9 +209,9 @@ void Framework::InvalidateMyPosition()
|
|||
CallDrapeFunction(bind(&df::DrapeEngine::InvalidateMyPosition, _1));
|
||||
}
|
||||
|
||||
void Framework::SetMyPositionModeListener(location::TMyPositionModeChanged const & fn)
|
||||
void Framework::SetMyPositionModeListener(TMyPositionModeChanged && fn)
|
||||
{
|
||||
m_myPositionListener = fn;
|
||||
m_myPositionListener = move(fn);
|
||||
}
|
||||
|
||||
void Framework::OnUserPositionChanged(m2::PointD const & position)
|
||||
|
|
|
@ -284,7 +284,7 @@ public:
|
|||
void OnCompassUpdate(location::CompassInfo const & info);
|
||||
void SwitchMyPositionNextMode();
|
||||
void InvalidateMyPosition();
|
||||
void SetMyPositionModeListener(location::TMyPositionModeChanged const & fn);
|
||||
void SetMyPositionModeListener(location::TMyPositionModeChanged && fn);
|
||||
|
||||
private:
|
||||
void OnUserPositionChanged(m2::PointD const & position);
|
||||
|
|
Loading…
Add table
Reference in a new issue