Fixed compilation of jsonfile on gcc/clang

This commit is contained in:
Jordan Cristiano 2015-08-31 22:16:06 -04:00
parent 4d4a751e75
commit efab1c3707

View File

@ -52,12 +52,13 @@ namespace base
FILE* m_fp;
};
class JsonReaderObject;
class JsonReaderIterator
class JsonReaderObject
{
public:
using JsonValue = rapidjson::GenericValue<rapidjson::ASCII<>>;
class JsonReaderIterator
{
public:
explicit JsonReaderIterator(JsonValue* value, bool& hasReadError);
@ -73,9 +74,6 @@ namespace base
class JsonReaderArray
{
public:
using JsonValue = rapidjson::GenericValue<rapidjson::ASCII<>>;
public:
explicit JsonReaderArray(JsonValue& value, bool& parseError);
@ -101,11 +99,6 @@ namespace base
bool& m_hasReadError;
};
class JsonReaderObject
{
public:
using JsonValue = rapidjson::GenericValue<rapidjson::ASCII<>>;
public:
explicit JsonReaderObject(JsonValue& value, bool& parseError);
@ -132,6 +125,9 @@ namespace base
bool& m_hasReadError;
};
using JsonReaderIterator = JsonReaderObject::JsonReaderIterator;
using JsonReaderArray = JsonReaderObject::JsonReaderArray;
class JsonReaderFile
{
public: