GH #1050 JSON: fix gcc -Wshadow warnings

This commit is contained in:
Miklos Vajna
2015-12-04 09:11:42 +01:00
parent 1483d0d112
commit ce8fa7740c
8 changed files with 39 additions and 39 deletions

View File

@@ -23,18 +23,18 @@ namespace Poco {
namespace JSON {
PrintHandler::PrintHandler(unsigned indent):
PrintHandler::PrintHandler(unsigned newIndent):
_out(std::cout),
_indent(indent),
_indent(newIndent),
_array(0),
_objStart(true)
{
}
PrintHandler::PrintHandler(std::ostream& out, unsigned indent):
PrintHandler::PrintHandler(std::ostream& out, unsigned newIndent):
_out(out),
_indent(indent),
_indent(newIndent),
_array(0),
_objStart(true)
{
@@ -172,10 +172,10 @@ void PrintHandler::value(UInt64 v)
#endif
void PrintHandler::value(const std::string& value)
void PrintHandler::value(const std::string& rValue)
{
arrayValue();
Stringifier::formatString(value, _out);
Stringifier::formatString(rValue, _out);
_objStart = false;
}