From 26d226a6df32985cf2abf0c6597a845b058e1aa3 Mon Sep 17 00:00:00 2001 From: Timur Gagiev Date: Wed, 30 Dec 2020 04:56:03 +0300 Subject: [PATCH] fix windows build --- src/json.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.h b/src/json.h index a433e3f..e569cfc 100644 --- a/src/json.h +++ b/src/json.h @@ -23,7 +23,7 @@ struct JSON { 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() { @@ -66,7 +66,7 @@ struct JSON { 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) {