fix clang-tidy issues

This commit is contained in:
Mayukha Vadari
2026-07-22 18:54:59 -04:00
parent 5c64d9f7c0
commit 84c47bb55e
24 changed files with 14 additions and 30 deletions

View File

@@ -834,9 +834,6 @@ transResultInfo(TERRaw code, std::string& token, std::string& text);
std::string
transToken(TERRaw code);
std::string
transHuman(TERRaw code);
std::optional<TER>
transCode(std::string const& token);

View File

@@ -100,7 +100,7 @@ public:
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
: registry(registry)
, view(view)
, preflightResult(preflightResult)
, preflightResult(std::move(preflightResult))
, flags(flags)
, tx(tx)
, parentBatchId(parentBatchId)

View File

@@ -28,7 +28,7 @@ struct ApplyResult
std::optional<TxMeta> metadata;
ApplyResult(TER t, bool a, std::optional<TxMeta> m = std::nullopt)
: ter(t), applied(a), metadata(std::move(m))
: ter(std::move(t)), applied(a), metadata(std::move(m))
{
}
};

View File

@@ -505,7 +505,7 @@ class FlowException : public std::runtime_error
public:
TER ter;
FlowException(TER t, std::string const& msg) : std::runtime_error(msg), ter(t)
FlowException(TER t, std::string const& msg) : std::runtime_error(msg), ter(std::move(t))
{
}