Correct sonar bugs and address smells
[ric-plt/xapp-frame-cpp.git] / src / json / jhash.hpp
index 6ba1e50..8394acf 100644 (file)
@@ -40,8 +40,8 @@ namespace xapp {
 
 class Jhash {
        private:
-               void*   st;                                                     // the resulting symbol table generated by parse
-               void*   master_st;                                      // if user switches to a sub-blob; this tracks the original root st
+               void*   st = NULL;                                                      // the resulting symbol table generated by parse
+               void*   master_st = NULL;                                       // if user switches to a sub-blob; this tracks the original root st
 
                Jhash& operator=( const Jhash& soi );   // jhashes cannot be copied because of underlying symbol table goo
                Jhash( const Jhash& soi );
@@ -57,7 +57,7 @@ class Jhash {
                void Unset_blob( );
                bool Set_blob_ele( const char* name, int eidx );        // set from an array element
 
-               bool Parse_errors( );
+               const bool Parse_errors( );
                void Dump();
 
                std::string String( const char* name );                         // value fetching