Added a few "const" to remove a few GCC warnings

This commit is contained in:
Benoit Blanchon
2014-01-15 20:41:31 +01:00
parent 0e9840da3f
commit 9fd5288c4d
2 changed files with 16 additions and 16 deletions

View File

@ -21,19 +21,19 @@ public:
JsonHashTable() {}
bool containsKey(char* key);
bool containsKey(const char* key);
JsonArray getArray(char* key);
bool getBool(char* key);
double getDouble(char* key);
JsonHashTable getHashTable(char* key);
long getLong(char* key);
char* getString(char* key);
JsonArray getArray(const char* key);
bool getBool(const char* key);
double getDouble(const char* key);
JsonHashTable getHashTable(const char* key);
long getLong(const char* key);
char* getString(const char* key);
private:
JsonHashTable(char* json, jsmntok_t* tokens);
jsmntok_t* getToken(char* key);
jsmntok_t* getToken(const char* key);
};
#endif