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

@ -5,7 +5,7 @@
class JsonWriter
{
public:
explicit JsonWriter(Print& sink)
explicit JsonWriter(Print* sink)
: _sink(sink), _length(0)
{
}
@ -34,16 +34,16 @@ public:
void writeEmptyArray()
{
_length += _sink.print("[]");
_length += _sink->print("[]");
}
void writeEmptyObject()
{
_length += _sink.print("{}");
_length += _sink->print("{}");
}
protected:
Print& _sink;
Print* _sink;
size_t _length;
};