Renamed Reader::getFormatedErrorMessages() to getFormattedErrorMessages. Bug #3023708 (Formatted has 2 't'). The old member function is deprecated but still present for backward compatibility.

This commit is contained in:
Baptiste Lepilleur
2011-05-01 16:27:55 +00:00
parent 99043b32b5
commit b2e8cccbc6
7 changed files with 37 additions and 5 deletions

View File

@@ -839,8 +839,16 @@ Reader::getLocationLineAndColumn( Location location ) const
}
// Deprecated. Preserved for backward compatibility
std::string
Reader::getFormatedErrorMessages() const
{
return getFormattedErrorMessages();
}
std::string
Reader::getFormattedErrorMessages() const
{
std::string formattedMessage;
for ( Errors::const_iterator itError = errors_.begin();
@@ -862,7 +870,7 @@ std::istream& operator>>( std::istream &sin, Value &root )
Json::Reader reader;
bool ok = reader.parse(sin, root, true);
//JSON_ASSERT( ok );
if (!ok) throw std::runtime_error(reader.getFormatedErrorMessages());
if (!ok) throw std::runtime_error(reader.getFormattedErrorMessages());
return sin;
}