From db5d3be63fd9fc44903560d49ed02562e6f6a22f Mon Sep 17 00:00:00 2001 From: MichelJuillard <michel.juillard@mjui.fr> Date: Fri, 31 Mar 2023 15:38:19 +0200 Subject: [PATCH] make some symbols public for error functions --- src/DataTree.hh | 4 +--- src/SymbolTable.hh | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/DataTree.hh b/src/DataTree.hh index 32c962af..080d3821 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 6760e1a0..4cdc103d 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) { -- GitLab