forked from organicmaps/organicmaps
Warning fixes
This commit is contained in:
parent
f000196e74
commit
36c7d727f1
2 changed files with 6 additions and 4 deletions
|
@ -227,8 +227,9 @@ private:
|
|||
// TODO: GetIndex(), Open() and Close() make Index single-threaded!
|
||||
IndexT * GetIndex(uint32_t scale, m2::RectD const & occlusionRect)
|
||||
{
|
||||
if ((m_scaleRange.first <= scale && scale <= m_scaleRange.second) &&
|
||||
m_Rect.IsIntersect(occlusionRect))
|
||||
if ((m_scaleRange.first <= static_cast<int>(scale)
|
||||
&& static_cast<int>(scale) <= m_scaleRange.second)
|
||||
&& m_Rect.IsIntersect(occlusionRect))
|
||||
{
|
||||
Open();
|
||||
m_QueriesSkipped = 0;
|
||||
|
@ -245,7 +246,7 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
bool IsMyData(string path) const
|
||||
bool IsMyData(string const & path) const
|
||||
{
|
||||
return m_Path == path;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import "SettingsManager.h"
|
||||
#import "CountriesViewController.h"
|
||||
#import "MapViewController.h"
|
||||
|
||||
#include "../../../storage/storage.hpp"
|
||||
|
||||
|
@ -98,7 +99,7 @@ using namespace storage;
|
|||
// options:UIViewAnimationOptionTransitionCurlDown
|
||||
// completion:nil];
|
||||
|
||||
[m_prevController Invalidate];
|
||||
[(MapViewController *)m_prevController Invalidate];
|
||||
|
||||
m_storage = nil;
|
||||
[m_prevController release];
|
||||
|
|
Loading…
Add table
Reference in a new issue