From 7dcf8f4f34325e93f88bcb90235ae4d1d96f2a16 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 29 Sep 2014 12:17:42 +0200 Subject: [PATCH] wide char: use std::move in To{W,}String --- src/utility/wide_string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/wide_string.cpp b/src/utility/wide_string.cpp index 4453ec5..a9595e4 100644 --- a/src/utility/wide_string.cpp +++ b/src/utility/wide_string.cpp @@ -24,12 +24,12 @@ std::string ToString(std::wstring ws) { - return boost::locale::conv::utf_to_utf(ws); + return boost::locale::conv::utf_to_utf(std::move(ws)); } std::wstring ToWString(std::string s) { - return boost::locale::conv::utf_to_utf(s); + return boost::locale::conv::utf_to_utf(std::move(s)); } size_t wideLength(const std::wstring &ws) -- 2.11.4.GIT