modernize-pass-by-value

This commit is contained in:
Daniel Chabrowski
2018-02-25 01:58:09 +01:00
parent ad624432d8
commit 9ce66f2c9a
6 changed files with 37 additions and 38 deletions

View File

@@ -476,8 +476,9 @@ class full_formatter SPDLOG_FINAL : public flag_formatter
///////////////////////////////////////////////////////////////////////////////
// pattern_formatter inline impl
///////////////////////////////////////////////////////////////////////////////
inline spdlog::pattern_formatter::pattern_formatter(const std::string& pattern, pattern_time_type pattern_time, const std::string& eol)
: _eol(eol), _pattern_time(pattern_time)
inline spdlog::pattern_formatter::pattern_formatter(const std::string& pattern, pattern_time_type pattern_time, std::string eol) :
_eol(std::move(eol)),
_pattern_time(pattern_time)
{
compile_pattern(pattern);
}