From 0a3c81826fd532d5a8e9126b0ff2419b0d867cf6 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 19 Jul 2018 15:03:08 +0300 Subject: [PATCH] Changed some functions to accept strings instead of ref to strings for better semantics --- include/spdlog/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 668889f0..33de4383 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -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) { }