Replaced non-const references by pointer to follow Google style guide

This commit is contained in:
Benoit Blanchon
2014-10-11 16:58:24 +02:00
parent 35eaa55b3a
commit b49aa22c65
12 changed files with 51 additions and 48 deletions

View File

@ -15,7 +15,7 @@ size_t JsonContainer::printTo(char* buffer, size_t bufferSize) const
size_t JsonContainer::printTo(Print& p) const
{
CompactJsonWriter writer(p);
CompactJsonWriter writer(&p);
_node->writeTo(writer);
return writer.bytesWritten();
}
@ -28,11 +28,17 @@ size_t JsonContainer::prettyPrintTo(char* buffer, size_t bufferSize) const
size_t JsonContainer::prettyPrintTo(IndentedPrint& p) const
{
PrettyJsonWriter writer(p);
PrettyJsonWriter writer(&p);
_node->writeTo(writer);
return writer.bytesWritten();
}
size_t JsonContainer::prettyPrintTo(Print& print) const
{
IndentedPrint indentedPrint = IndentedPrint(print);
return prettyPrintTo(indentedPrint);
}
JsonNode* JsonContainer::createNode()
{
if (!_node) return 0;