From 3fa0f6caa0b9b1f2d9c25e9034f5762c6cb6d417 Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Wed, 31 May 2017 07:35:35 +1000 Subject: [PATCH] some cleanup cleanup some code smells --- include/cxxopts.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 5afc307..64ea018 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -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; @@ -795,13 +795,13 @@ namespace cxxopts String help_one_group(const std::string& group) const; - inline - void - generate_group_help(String& result, const std::vector& groups) const; + inline + void + generate_group_help(String& result, const std::vector& groups) const; - inline - void - generate_all_groups_help(String& result) const; + inline + void + generate_all_groups_help(String& result) const; std::string m_program; String m_help_string;