forked from organicmaps/organicmaps-tmp
Fix warnings and some abuse return type.
This commit is contained in:
parent
966ffaa41d
commit
278bc7b91d
3 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ namespace feature
|
|||
|
||||
SearchTokensCollector() : m_currentS(), m_currentCount(0) {}
|
||||
|
||||
void operator() (strings::UniString const & s, search::trie::ValueReader::ValueType value)
|
||||
void operator() (strings::UniString const & s, search::trie::ValueReader::ValueType)
|
||||
{
|
||||
if (m_currentS == s)
|
||||
{
|
||||
|
|
|
@ -113,7 +113,7 @@ public:
|
|||
|
||||
inline bool Has(uint32_t t) const
|
||||
{
|
||||
for (int i = 0; i < m_size; ++i)
|
||||
for (size_t i = 0; i < m_size; ++i)
|
||||
if (m_types[i] == t)
|
||||
return true;
|
||||
return false;
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
inline bool Add(string const & fileName)
|
||||
{
|
||||
m2::RectD dummy;
|
||||
return Add(fileName, dummy);
|
||||
return (-1 != Add(fileName, dummy));
|
||||
}
|
||||
|
||||
// Remove mwm.
|
||||
|
|
Loading…
Add table
Reference in a new issue