Allow conversion from int to string (#1143774)
parent
3521b1e686
commit
f7ac263173
@ -0,0 +1,27 @@
|
|||||||
|
--- a/json_value.cpp
|
||||||
|
+++ b/json_value.cpp
|
||||||
|
@@ -666,6 +666,7 @@ Value::asString() const
|
||||||
|
case booleanValue:
|
||||||
|
return value_.bool_ ? "true" : "false";
|
||||||
|
case intValue:
|
||||||
|
+ return valueToString( value_.int_ );
|
||||||
|
case uintValue:
|
||||||
|
case realValue:
|
||||||
|
case arrayValue:
|
||||||
|
@@ -1423,14 +1424,14 @@ Value::isString() const
|
||||||
|
bool
|
||||||
|
Value::isArray() const
|
||||||
|
{
|
||||||
|
- return type_ == nullValue || type_ == arrayValue;
|
||||||
|
+ return type_ == arrayValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
Value::isObject() const
|
||||||
|
{
|
||||||
|
- return type_ == nullValue || type_ == objectValue;
|
||||||
|
+ return type_ == objectValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue