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

master
Andrzej Rybczak 12 years ago
parent 7abbf279c5
commit 7dcf8f4f34
  1. 4
      src/utility/wide_string.cpp

@ -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)

Loading…
Cancel
Save