diff --git a/src/DataTree.hh b/src/DataTree.hh index 32c962af4340828a1ad534b8cd070fce66767796..080d3821e01234874aa801dd3a8e0a91ac430764 100644 --- a/src/DataTree.hh +++ b/src/DataTree.hh @@ -289,10 +289,8 @@ public: //! Raised when a trend is declared twice class TrendException : public std::exception { - private: - const string name; - public: + const string name; TrendException(string name_arg) : name(name_arg) {} }; diff --git a/src/SymbolTable.hh b/src/SymbolTable.hh index 6760e1a07abd544e98e76a4ff93dc35e44610958..4cdc103d38493ab8ef0f1e81a5969349d43909e2 100644 --- a/src/SymbolTable.hh +++ b/src/SymbolTable.hh @@ -198,13 +198,11 @@ public: //! Thrown when trying to declare a symbol twice class AlreadyDeclaredException : public std::exception { - private: - //! Symbol name - const string name; + public: //! Was the previous declaration done with the same symbol type ? const bool same_type; - - public: + //! Symbol name + const string name; AlreadyDeclaredException(string name_arg, bool same_type_arg) : name(name_arg), same_type(same_type_arg) {