Renamed private members

This commit is contained in:
Benoît Blanchon
2014-06-27 13:18:38 +02:00
parent 4f4b35bd41
commit 568b8988d8
4 changed files with 25 additions and 25 deletions

View File

@ -19,7 +19,7 @@ public:
protected:
enum ObjectType
enum JsonValueType
{
JSON_STRING,
JSON_NUMBER,
@ -27,7 +27,7 @@ protected:
JSON_OBJECT,
};
union ObjectValue
union JsonValueContent
{
const char* string;
double number;
@ -35,13 +35,13 @@ protected:
JsonObjectBase* object;
};
struct ObjectContainer
struct JsonValue
{
ObjectType type;
ObjectValue value;
JsonValueType type;
JsonValueContent content;
};
void writeObjectTo(ObjectContainer& obj, StringBuilder& sb);
void writeValueTo(JsonValue& obj, StringBuilder& sb);
virtual void writeTo(StringBuilder& sb) = 0;
};