Fix clang-tidy errors

This commit is contained in:
JCW
2026-05-01 13:37:57 +01:00
parent 9135171f74
commit 2e76861945
3 changed files with 11 additions and 2 deletions

View File

@@ -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()));
}
}

View File

@@ -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() &&

View File

@@ -23,6 +23,7 @@
#include <optional>
#include <regex>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <utility>