mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
chore(Message): fix formatting for #3104
This commit is contained in:
@@ -43,9 +43,9 @@ class Foundation_API Message
|
|||||||
/// caused the message.
|
/// caused the message.
|
||||||
{
|
{
|
||||||
public:
|
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_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.
|
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
|
/// with the given name. If the parameter with the given name
|
||||||
/// does not exist, then defaultValue is returned.
|
/// does not exist, then defaultValue is returned.
|
||||||
|
|
||||||
const StringMap& getAll() const;
|
const StringMap& getAll() const;
|
||||||
/// Returns a const reference to all the values
|
/// 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
|
/// Sets the value for a parameter. If the parameter does
|
||||||
/// not exist, then it is created.
|
/// not exist, then it is created.
|
||||||
|
|
||||||
|
|||||||
@@ -277,12 +277,12 @@ const std::string& Message::get(const std::string& param, const std::string& def
|
|||||||
|
|
||||||
const Message::StringMap& Message::getAll() const
|
const Message::StringMap& Message::getAll() const
|
||||||
{
|
{
|
||||||
static StringMap empty;
|
static StringMap empty;
|
||||||
|
|
||||||
if (_pMap)
|
if (_pMap)
|
||||||
return *_pMap;
|
return *_pMap;
|
||||||
|
|
||||||
return empty;
|
return empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Message::set(const std::string& param, const std::string& value)
|
void Message::set(const std::string& param, const std::string& value)
|
||||||
|
|||||||
Reference in New Issue
Block a user