some cleanup

cleanup some code smells
This commit is contained in:
Jarryd Beck 2017-05-31 07:35:35 +10:00
parent 9db62cb338
commit 3fa0f6caa0

View File

@ -58,7 +58,7 @@ namespace cxxopts
String
toLocalString(std::string s)
{
return icu::UnicodeString::fromUTF8(s);
return icu::UnicodeString::fromUTF8(std::move(s));
}
class UnicodeStringIterator : public
@ -681,7 +681,7 @@ namespace cxxopts
inline
Options&
positional_help(const std::string& help_text)
positional_help(std::string help_text)
{
m_positional_help = std::move(help_text);
return *this;