Fix warnings and some abuse return type.

This commit is contained in:
vng 2011-11-25 16:24:49 +03:00 committed by Alex Zolotarev
parent 966ffaa41d
commit 278bc7b91d
3 changed files with 3 additions and 3 deletions

View file

@ -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)
{

View file

@ -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;

View file

@ -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.