reverted fixing ...\include\spdlog\pattern_formatter-inl.h(1319): warning C26800: Use of a moved from object: ''user_chars'' (lifetime.1).

pull/3225/head
wtom 11 months ago
parent 5585e630d7
commit 72259c0dcb

@ -1308,7 +1308,7 @@ SPDLOG_INLINE void pattern_formatter::compile_pattern_(const std::string &patter
if (*it == '%') {
if (user_chars) // append user chars found so far
{
formatters_.emplace_back(user_chars.release());
formatters_.push_back(std::move(user_chars));
}
auto padding = handle_padspec_(++it, end);
@ -1332,7 +1332,7 @@ SPDLOG_INLINE void pattern_formatter::compile_pattern_(const std::string &patter
}
if (user_chars) // append raw chars found so far
{
formatters_.emplace_back(user_chars.release());
}
formatters_.push_back(std::move(user_chars));
}
}
} // namespace spdlog

Loading…
Cancel
Save