fixes according to code review.

This commit is contained in:
rachytski 2012-11-13 14:14:15 +03:00 committed by Alex Zolotarev
parent d153b65b03
commit d83b3d3384
6 changed files with 3 additions and 20 deletions

View file

@ -112,7 +112,7 @@
Framework & f = GetFramework();
shared_ptr<location::State> ls = f.GetLocationState();
if (newStatus == 1)
if (newStatus == location::ECompassFollow)
[m_myPositionButton setImage:[UIImage imageNamed:@"location-follow.png"] forState:UIControlStateSelected];
else
{
@ -174,7 +174,7 @@
[[MapsAppDelegate theApp] enableStandby];
[[MapsAppDelegate theApp].m_locationManager stop:self];
m_myPositionButton.selected = YES;
m_myPositionButton.selected = NO;
[m_myPositionButton setImage:[UIImage imageNamed:@"location.png"] forState:UIControlStateSelected];
}

View file

@ -36,7 +36,7 @@ size_t BasicTilingRenderPolicy::CalculateTileSize(size_t screenWidth, size_t scr
BasicTilingRenderPolicy::BasicTilingRenderPolicy(Params const & p,
bool doUseQueuedRenderer)
: RenderPolicy(p, GetPlatform().DoSupportRotation(), GetPlatform().CpuCores()),
: RenderPolicy(p, GetPlatform().IsPro(), GetPlatform().CpuCores()),
m_DrawScale(0),
m_IsEmptyModel(false),
m_DoRecreateCoverage(false),

View file

@ -128,8 +128,6 @@ public:
inline bool IsPro() const { return m_isPro; }
bool DoSupportRotation() const;
/// @return url for clients to download maps
//@{
string MetaServerUrl() const;

View file

@ -129,11 +129,6 @@ namespace
};
}
bool Platform::DoSupportRotation() const
{
return IsPro();
}
void Platform::RunAsync(TFunctor const & fn, Priority p)
{
UNUSED_VALUE(p);

View file

@ -172,11 +172,6 @@ string Platform::UniqueClientId() const
return HashUniqueID(GetMacAddress() + GetDeviceUid());
}
bool Platform::DoSupportRotation() const
{
return true;
}
static void PerformImpl(void * obj)
{
Platform::TFunctor * f = reinterpret_cast<Platform::TFunctor *>(obj);

View file

@ -67,11 +67,6 @@ int Platform::VideoMemoryLimit() const
return 20 * 1024 * 1024;
}
bool Platform::DoSupportRotation() const
{
return IsPro();
}
///////////////////////////////////////////////////////////////////////////////
extern Platform & GetPlatform()
{