wide char: use std::move in To{W,}String
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user