wide char: use std::move in To{W,}String

This commit is contained in:
Andrzej Rybczak
2014-09-29 12:17:42 +02:00
parent 7abbf279c5
commit 7dcf8f4f34

View File

@@ -24,12 +24,12 @@
std::string ToString(std::wstring ws)
{
return boost::locale::conv::utf_to_utf<char>(ws);
return boost::locale::conv::utf_to_utf<char>(std::move(ws));
}
std::wstring ToWString(std::string s)
{
return boost::locale::conv::utf_to_utf<wchar_t>(s);
return boost::locale::conv::utf_to_utf<wchar_t>(std::move(s));
}
size_t wideLength(const std::wstring &ws)