forked from organicmaps/organicmaps
Removed warnings
This commit is contained in:
parent
ba4802ad04
commit
e062485020
3 changed files with 7 additions and 14 deletions
|
@ -79,9 +79,11 @@ public:
|
|||
void PrintError()
|
||||
{
|
||||
if (BaseT::GetErrorCode() != XML_ERROR_NONE)
|
||||
LOG(LWARNING, ("XML parse error at line",
|
||||
BaseT::GetCurrentLineNumber(),
|
||||
"and byte", BaseT::GetCurrentByteIndex()));
|
||||
{
|
||||
LOG(LDEBUG, ("XML parse error at line",
|
||||
BaseT::GetCurrentLineNumber(),
|
||||
"and byte", BaseT::GetCurrentByteIndex()));
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -19,9 +19,6 @@ string GetSupportedStyle(string const & s, string const & context, string const
|
|||
if (s == kSupportedColors[i])
|
||||
return s;
|
||||
}
|
||||
|
||||
// Not recognized symbols are replaced with default one
|
||||
LOG(LWARNING, ("Icon", s, "for point", context, "is not supported"));
|
||||
return fallback;
|
||||
}
|
||||
|
||||
|
|
|
@ -255,8 +255,6 @@ class KMLParser
|
|||
pt = MercatorBounds::FromLatLon(lat, lon);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
LOG(LWARNING, ("Invalid coordinates", s, "while loading", m_name));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -499,11 +497,7 @@ public:
|
|||
else if (prevTag == "TimeStamp")
|
||||
{
|
||||
if (currTag == "when")
|
||||
{
|
||||
m_timeStamp = my::StringToTimestamp(value);
|
||||
if (m_timeStamp == my::INVALID_TIME_STAMP)
|
||||
LOG(LWARNING, ("Invalid timestamp in Placemark:", value));
|
||||
}
|
||||
}
|
||||
else if (currTag == kStyleUrl)
|
||||
{
|
||||
|
@ -556,7 +550,7 @@ std::unique_ptr<KMLData> LoadKMLFile(std::string const & file)
|
|||
}
|
||||
catch (std::exception const & e)
|
||||
{
|
||||
LOG(LWARNING, ("Error while loading bookmarks from", file, e.what()));
|
||||
LOG(LDEBUG, ("Error while loading bookmarks from", file, e.what()));
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -568,7 +562,7 @@ std::unique_ptr<KMLData> LoadKMLData(ReaderPtr<Reader> const & reader)
|
|||
KMLParser parser(*data);
|
||||
if (!ParseXML(src, parser, true))
|
||||
{
|
||||
LOG(LWARNING, ("XML read error. Probably, incorrect file encoding."));
|
||||
LOG(LDEBUG, ("XML read error. Probably, incorrect file encoding."));
|
||||
data.reset();
|
||||
}
|
||||
return data;
|
||||
|
|
Loading…
Add table
Reference in a new issue