From c103f471beb239ed12e26ac5d95cc8cb3034feca Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 28 Oct 2016 21:17:12 +0200 Subject: Avoid a copy when constructing a log_message_t --- src/Log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Log.h b/src/Log.h index 3a588f4..bf1d5e4 100644 --- a/src/Log.h +++ b/src/Log.h @@ -134,7 +134,7 @@ class LogTracer : public LogBackend { class LogLine; struct log_message_t { - log_message_t(log_level_t _level, std::string _message) : + log_message_t(log_level_t _level, const std::string& _message) : level(_level), message(_message) {} -- cgit v1.2.3