Renamed JsonSink into Print

This commit is contained in:
Benoît Blanchon
2014-07-01 13:36:22 +02:00
parent c84860e3f4
commit c3359d3eb9
9 changed files with 45 additions and 45 deletions

View File

@ -37,23 +37,23 @@ private:
JsonValue items[N];
int itemCount;
virtual size_t writeTo(JsonSink& sb)
virtual size_t writeTo(Print& p)
{
size_t n = 0;
n += sb.write("[");
n += p.write("[");
for (int i = 0; i < itemCount; i++)
{
if (i > 0)
{
n += sb.write(",");
n += p.write(",");
}
n += items[i].writeTo(sb);
n += items[i].writeTo(p);
}
n += sb.write("]");
n += p.write("]");
return n;
}