diff --git a/Foundation/include/Poco/Message.h b/Foundation/include/Poco/Message.h index 3d03ae679..909826f8c 100644 --- a/Foundation/include/Poco/Message.h +++ b/Foundation/include/Poco/Message.h @@ -43,9 +43,9 @@ class Foundation_API Message /// caused the message. { public: - typedef std::map StringMap; - - enum Priority + typedef std::map StringMap; + + enum Priority { PRIO_FATAL = 1, /// A fatal error. The application will most likely terminate. This is the highest priority. PRIO_CRITICAL, /// A critical error. The application might not be able to continue running successfully. @@ -180,10 +180,10 @@ public: /// with the given name. If the parameter with the given name /// does not exist, then defaultValue is returned. - const StringMap& getAll() const; - /// Returns a const reference to all the values - - void set(const std::string& param, const std::string& value); + const StringMap& getAll() const; + /// Returns a const reference to all the values + + void set(const std::string& param, const std::string& value); /// Sets the value for a parameter. If the parameter does /// not exist, then it is created. diff --git a/Foundation/src/Message.cpp b/Foundation/src/Message.cpp index 189059d67..7de6dc354 100644 --- a/Foundation/src/Message.cpp +++ b/Foundation/src/Message.cpp @@ -277,12 +277,12 @@ const std::string& Message::get(const std::string& param, const std::string& def const Message::StringMap& Message::getAll() const { - static StringMap empty; + static StringMap empty; - if (_pMap) - return *_pMap; + if (_pMap) + return *_pMap; - return empty; + return empty; } void Message::set(const std::string& param, const std::string& value)