summaryrefslogtreecommitdiff
path: root/src/unstable/json.h
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2017-08-23 06:36:55 -0700
committerMike Buland <mbuland@penny-arcade.com>2017-08-23 06:36:55 -0700
commitb82c6e251b995353ce205bbd53f3db2b985c5345 (patch)
treee633d576ddb3783c40e3c0e7e39b0f51fe09cbbc /src/unstable/json.h
parent320c4811b16f1e50fc94203728f05f0c10e915d1 (diff)
downloadlibbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.gz
libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.bz2
libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.xz
libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.zip
Fixed string constructor.
Diffstat (limited to '')
-rw-r--r--src/unstable/json.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unstable/json.h b/src/unstable/json.h
index 5a59b7e..6042f7d 100644
--- a/src/unstable/json.h
+++ b/src/unstable/json.h
@@ -33,6 +33,7 @@ namespace Bu
33 public: 33 public:
34 Json(); 34 Json();
35 Json( const Bu::String &sValue ); 35 Json( const Bu::String &sValue );
36 Json( const char *sValue );
36 Json( double dValue ); 37 Json( double dValue );
37 Json( bool bValue ); 38 Json( bool bValue );
38 Json( Type eType ); 39 Json( Type eType );
@@ -83,6 +84,8 @@ namespace Bu
83 DatUnion() : pObject( NULL ) { } 84 DatUnion() : pObject( NULL ) { }
84 DatUnion( const Bu::String &sValue ) : 85 DatUnion( const Bu::String &sValue ) :
85 pString( new Bu::String( sValue ) ) { } 86 pString( new Bu::String( sValue ) ) { }
87 DatUnion( const char *sValue ) :
88 pString( new Bu::String( sValue ) ) { }
86 DatUnion( double dValue ) : dNumber( dValue ) { } 89 DatUnion( double dValue ) : dNumber( dValue ) { }
87 DatUnion( bool bValue ) : bBoolean( bValue ) { } 90 DatUnion( bool bValue ) : bBoolean( bValue ) { }
88 JsonHash *pObject; 91 JsonHash *pObject;