mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 17:27:00 +00:00
Fix clang-tidy errors
This commit is contained in:
@@ -217,12 +217,13 @@ class Logger
|
||||
}
|
||||
else
|
||||
{
|
||||
fmt::format_to(fmt::appender(stream_), "{}", p.value());
|
||||
fmt::format_to(fmt::appender(stream_), "{}", std::move(p.value()));
|
||||
}
|
||||
|
||||
if (jsonMode_)
|
||||
{
|
||||
detail::appendJsonField(messageParams_, p.name(), std::move(p).value());
|
||||
detail::appendJsonField(
|
||||
messageParams_, std::move(p.name()), std::move(p.value()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -184,6 +184,13 @@ public:
|
||||
return value_;
|
||||
}
|
||||
|
||||
/** @brief Get the parameter value. */
|
||||
[[nodiscard]] T&
|
||||
value() &
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
/** @brief Get the parameter value. */
|
||||
[[nodiscard]] T&&
|
||||
value() &&
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <optional>
|
||||
#include <regex>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
Reference in New Issue
Block a user