Changed some functions to accept strings instead of ref to strings for better semantics

This commit is contained in:
gabime 2018-07-19 15:03:08 +03:00
parent b710e0fe86
commit 0a3c81826f

View File

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