diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2017-08-23 06:36:55 -0700 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2017-08-23 06:36:55 -0700 |
commit | b82c6e251b995353ce205bbd53f3db2b985c5345 (patch) | |
tree | e633d576ddb3783c40e3c0e7e39b0f51fe09cbbc /src/unstable/json.cpp | |
parent | 320c4811b16f1e50fc94203728f05f0c10e915d1 (diff) | |
download | libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.gz libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.bz2 libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.xz libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.zip |
Fixed string constructor.
Diffstat (limited to 'src/unstable/json.cpp')
-rw-r--r-- | src/unstable/json.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp index d13f6e2..b22ca0d 100644 --- a/src/unstable/json.cpp +++ b/src/unstable/json.cpp | |||
@@ -19,6 +19,12 @@ Bu::Json::Json( const Bu::String &sValue ) : | |||
19 | { | 19 | { |
20 | } | 20 | } |
21 | 21 | ||
22 | Bu::Json::Json( const char *sValue ) : | ||
23 | eType( String ), | ||
24 | uDat( sValue ) | ||
25 | { | ||
26 | } | ||
27 | |||
22 | Bu::Json::Json( double dValue ) : | 28 | Bu::Json::Json( double dValue ) : |
23 | eType( Number ), | 29 | eType( Number ), |
24 | uDat( dValue ) | 30 | uDat( dValue ) |