mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Changed some functions to accept strings instead of ref to strings for better semantics
This commit is contained in:
@@ -151,8 +151,8 @@ public:
|
||||
: runtime_error(msg)
|
||||
{
|
||||
}
|
||||
spdlog_ex(const std::string &msg, int last_errno)
|
||||
: runtime_error(msg)
|
||||
spdlog_ex(std::string msg, int last_errno)
|
||||
: runtime_error(std::move(msg))
|
||||
, last_errno_(last_errno)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user