mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-11 23:54:09 +02:00
fix windows build
This commit is contained in:
@@ -23,7 +23,7 @@ struct JSON {
|
|||||||
Type type;
|
Type type;
|
||||||
|
|
||||||
JSON(Type type, const char *name = NULL) : nodes(NULL), prev(NULL), next(NULL), type(type) {
|
JSON(Type type, const char *name = NULL) : nodes(NULL), prev(NULL), next(NULL), type(type) {
|
||||||
this->name = String::copy(name);
|
this->name = StrUtils::copy(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
~JSON() {
|
~JSON() {
|
||||||
@@ -66,7 +66,7 @@ struct JSON {
|
|||||||
|
|
||||||
|
|
||||||
void add(const char *name, const char *value) {
|
void add(const char *name, const char *value) {
|
||||||
add(STRING, name)->sValue = String::copy(value);
|
add(STRING, name)->sValue = StrUtils::copy(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void add(const char *name, int value) {
|
void add(const char *name, int value) {
|
||||||
|
Reference in New Issue
Block a user