From dd1955f9d1a4511763aa6c326474c8f2c3b24345 Mon Sep 17 00:00:00 2001 From: "Paul \"Dettorer\" Hervot" Date: Sun, 29 Nov 2015 10:01:34 +0100 Subject: [PATCH] Logging: Remove a std::move due to NRVO --- src/common/logging/backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index d186ba8f8..10ce18924 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -109,7 +109,7 @@ Entry CreateEntry(Class log_class, Level log_level, vsnprintf(formatting_buffer.data(), formatting_buffer.size(), format, args); entry.message = std::string(formatting_buffer.data()); - return std::move(entry); + return entry; } static Filter* filter = nullptr;