settings: remove default_space_mode

This commit is contained in:
Andrzej Rybczak
2016-11-19 15:52:47 +01:00
parent 180c2d26fc
commit c6f5933bf9
3 changed files with 6 additions and 10 deletions

View File

@@ -35,7 +35,7 @@
#include "utility/option_parser.h"
bool yes_no(std::string v)
bool yes_no(const std::string &v)
{
if (v == "yes")
return true;

View File

@@ -46,10 +46,10 @@
}
template <typename DestT>
DestT verbose_lexical_cast(std::string v)
DestT verbose_lexical_cast(const std::string &v)
{
try {
return boost::lexical_cast<DestT>(std::move(v));
return boost::lexical_cast<DestT>(v);
} catch (boost::bad_lexical_cast &) {
invalid_value(v);
}
@@ -73,7 +73,7 @@ std::vector<ValueT> list_of(const std::string &v)
return list_of<ValueT>(v, verbose_lexical_cast<ValueT>);
}
bool yes_no(std::string v);
bool yes_no(const std::string &v);
////////////////////////////////////////////////////////////////////////////////