suss out the values.
*/
xapp::Jhash::Jhash( const char* jbuf ) :
- master_st( NULL ),
st( jw_new( jbuf ) )
{ /* empty body */ }
/*
Move constructor.
*/
-Jhash::Jhash( Jhash&& soi ) {
- master_st = soi.master_st;
- st = soi.st;
-
+Jhash::Jhash( Jhash&& soi ) :
+ master_st( soi.master_st ),
+ st( soi.st )
+{
soi.st = NULL; // prevent closing of RMR stuff on soi destroy
soi.master_st = NULL;
}
Right now we don't have much to work with other than checking for a
nil table.
*/
-bool xapp::Jhash::Parse_errors( ) {
+const bool xapp::Jhash::Parse_errors( ) {
return st == NULL;
}
*/
std::string xapp::Jhash::String( const char* name ) {
std::string rv = "";
- char* hashv;
+ const char* hashv;
if( (hashv = jw_string( st, name )) != NULL ) {
rv = std::string( hashv );
*/
std::string xapp::Jhash::String_ele( const char* name, int eidx ) {
std::string rv = "";
- char* hashv;
+ const char* hashv;
if( (hashv = jw_string_ele( st, name, eidx )) != NULL ) {
rv = std::string( hashv );