Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2013-01-09 17:50:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:48:26 +0300
commit435cb719be1332bbfdb019dbfc54c4066ee2f729 (patch)
treecc037a70cd41e8d2464efd2db4a9e0621e0ce9dc /map/compass_arrow.cpp
parentd34be1879fa929267da33b65d65fb5958936315c (diff)
changes according to code review.
Diffstat (limited to 'map/compass_arrow.cpp')
-rw-r--r--map/compass_arrow.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/map/compass_arrow.cpp b/map/compass_arrow.cpp
index ac10ea67ad..a361f8b3a4 100644
--- a/map/compass_arrow.cpp
+++ b/map/compass_arrow.cpp
@@ -144,7 +144,7 @@ void CompassArrow::purge()
bool CompassArrow::onTapEnded(m2::PointD const & pt)
{
anim::Controller * animController = m_framework->GetAnimController();
- animController->Lock();
+ anim::Controller::Guard guard(animController);
/// switching off compass follow mode
m_framework->GetInformationDisplay().locationState()->StopCompassFollowing();
@@ -154,8 +154,6 @@ bool CompassArrow::onTapEnded(m2::PointD const & pt)
m_framework->GetAnimator().RotateScreen(startAngle, endAngle);
- animController->Unlock();
-
m_framework->Invalidate();
return true;