mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
Replaced non-const references by pointer to follow Google style guide
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user