Skip to content

Commit 475c064

Browse files
committed
Change typeof to return String
1 parent 3d1af55 commit 475c064

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/JSON.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ JSONClass::~JSONClass()
7272
{
7373
}
7474

75-
const char* typeof(const JSONVar& value)
75+
String typeof(const JSONVar& value)
7676
{
7777
return JSONVar::typeof(value);
7878
}

src/JSON.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "JSONVar.h"
2626

27-
const char* typeof(const JSONVar& value);
27+
String typeof(const JSONVar& value);
2828

2929
class JSONClass {
3030
public:

src/JSONVar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ String JSONVar::stringify(const JSONVar& value)
333333
return str;
334334
}
335335

336-
const char* JSONVar::typeof_(const JSONVar& value)
336+
String JSONVar::typeof_(const JSONVar& value)
337337
{
338338
struct cJSON* json = value._json;
339339

src/JSONVar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class JSONVar : public Printable {
7474
static JSONVar parse(const char* s);
7575
static JSONVar parse(const String& s);
7676
static String stringify(const JSONVar& value);
77-
static const char* typeof_(const JSONVar& value);
77+
static String typeof_(const JSONVar& value);
7878

7979
private:
8080
JSONVar(struct cJSON* json, struct cJSON* parent);

0 commit comments

Comments
 (0)