mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-24 15:40:26 +00:00
fix clang-tidy issues
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user