chore(Message): fix formatting for #3104

This commit is contained in:
Alex Fabijanic
2022-05-29 21:42:33 -05:00
parent 8fa4d5273d
commit f860c26b3d
2 changed files with 11 additions and 11 deletions

View File

@@ -43,9 +43,9 @@ class Foundation_API Message
/// caused the message.
{
public:
typedef std::map<std::string, std::string> StringMap;
typedef std::map<std::string, std::string> StringMap;
enum Priority
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
const StringMap& getAll() const;
/// Returns a const reference to all the values
void set(const std::string& param, const std::string& value);
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.

View File

@@ -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)