some cleanup
cleanup some code smells
This commit is contained in:
parent
9db62cb338
commit
3fa0f6caa0
@ -58,7 +58,7 @@ namespace cxxopts
|
|||||||
String
|
String
|
||||||
toLocalString(std::string s)
|
toLocalString(std::string s)
|
||||||
{
|
{
|
||||||
return icu::UnicodeString::fromUTF8(s);
|
return icu::UnicodeString::fromUTF8(std::move(s));
|
||||||
}
|
}
|
||||||
|
|
||||||
class UnicodeStringIterator : public
|
class UnicodeStringIterator : public
|
||||||
@ -681,7 +681,7 @@ namespace cxxopts
|
|||||||
|
|
||||||
inline
|
inline
|
||||||
Options&
|
Options&
|
||||||
positional_help(const std::string& help_text)
|
positional_help(std::string help_text)
|
||||||
{
|
{
|
||||||
m_positional_help = std::move(help_text);
|
m_positional_help = std::move(help_text);
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user