From e68c9d43b4ded918ccaaa22c88492514884ec55b Mon Sep 17 00:00:00 2001 From: rachytski Date: Mon, 18 Jul 2011 21:21:01 +0300 Subject: [PATCH] fixed compilation errors. --- map/framework.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/map/framework.cpp b/map/framework.cpp index f42cbd4cb3..0a19374941 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -69,15 +69,15 @@ void Framework::OnGpsUpdate(location::GpsInfo const & info) Invalidate(); } - template - void FrameWork::OnCompassUpdate(location::CompassInfo const & info) +template +void Framework::OnCompassUpdate(location::CompassInfo const & info) +{ + if (info.m_timestamp < location::POSITION_TIMEOUT_SECONDS) { - if (info.m_timestamp < location::POSITION_TIMEOUT_SECONDS) - { - m_locationState.UpdateCompass(info); - Invalidate(); - } + m_locationState.UpdateCompass(info); + Invalidate(); } +} template Framework::Framework(shared_ptr windowHandle,