summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2019-05-14 08:51:37 -0700
committerMike Buland <eichlan@xagasoft.com>2019-05-14 08:51:37 -0700
commit3e316641b129038831110232b0065a02c0cc0f0c (patch)
tree565fd897d15694a8c75a13689506c971f2293100
parentd605d6c3c04c1e26121f9b1c5c1d2dbcc5f7bc37 (diff)
downloadlibbu++-3e316641b129038831110232b0065a02c0cc0f0c.tar.gz
libbu++-3e316641b129038831110232b0065a02c0cc0f0c.tar.bz2
libbu++-3e316641b129038831110232b0065a02c0cc0f0c.tar.xz
libbu++-3e316641b129038831110232b0065a02c0cc0f0c.zip
More fixes.
Diffstat (limited to '')
-rw-r--r--src/unstable/json.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp
index b1414a9..8c766dd 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -276,6 +276,8 @@ Bu::Json &Bu::Json::append( bool bValue )
276 276
277Bu::Json &Bu::Json::appendObject() 277Bu::Json &Bu::Json::appendObject()
278{ 278{
279 if( eType != Array )
280 throw Bu::ExceptionBase("Cannot append to non-array Json Types.");
279 Json *pOb = new Json( Object ); 281 Json *pOb = new Json( Object );
280 uDat.pArray->append( pOb ); 282 uDat.pArray->append( pOb );
281 return *pOb; 283 return *pOb;