summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-28 21:17:12 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-28 21:17:12 +0200
commitc103f471beb239ed12e26ac5d95cc8cb3034feca (patch)
tree50fb572ec97a0b545544f5547977b78c555c972c
parentb66f212cdce336a024244a7278b557e0daffe39e (diff)
downloaddabmod-c103f471beb239ed12e26ac5d95cc8cb3034feca.tar.gz
dabmod-c103f471beb239ed12e26ac5d95cc8cb3034feca.tar.bz2
dabmod-c103f471beb239ed12e26ac5d95cc8cb3034feca.zip
Avoid a copy when constructing a log_message_t
-rw-r--r--src/Log.h2
1 files changed, 1 insertions, 1 deletions
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) {}