From 013f912b2f4112e2013c4252dfdcb767470d789f Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Tue, 2 Jul 2024 14:20:24 -0400 Subject: [PATCH] Fix clang format --- include/xrpl/basics/MPTAmount.h | 3 +-- src/libxrpl/protocol/STEitherAmount.cpp | 3 +-- src/libxrpl/protocol/STMPTAmount.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/xrpl/basics/MPTAmount.h b/include/xrpl/basics/MPTAmount.h index bdb83b17cf9..066c43d1079 100644 --- a/include/xrpl/basics/MPTAmount.h +++ b/include/xrpl/basics/MPTAmount.h @@ -104,8 +104,7 @@ constexpr MPTAmount::MPTAmount(value_type value) : value_(value) { } -constexpr MPTAmount& -MPTAmount::operator=(beast::Zero) +constexpr MPTAmount& MPTAmount::operator=(beast::Zero) { value_ = 0; return *this; diff --git a/src/libxrpl/protocol/STEitherAmount.cpp b/src/libxrpl/protocol/STEitherAmount.cpp index c1ac725eeac..a94ffc16d3e 100644 --- a/src/libxrpl/protocol/STEitherAmount.cpp +++ b/src/libxrpl/protocol/STEitherAmount.cpp @@ -65,8 +65,7 @@ STEitherAmount::getText() const return std::visit([&](auto&& a) { return a.getText(); }, amount_); } -Json::Value -STEitherAmount::getJson(JsonOptions) const +Json::Value STEitherAmount::getJson(JsonOptions) const { return std::visit( [&](auto&& a) { return a.getJson(JsonOptions::none); }, amount_); diff --git a/src/libxrpl/protocol/STMPTAmount.cpp b/src/libxrpl/protocol/STMPTAmount.cpp index b892d21e109..5028edfb864 100644 --- a/src/libxrpl/protocol/STMPTAmount.cpp +++ b/src/libxrpl/protocol/STMPTAmount.cpp @@ -69,8 +69,7 @@ STMPTAmount::getText() const return std::to_string(value_); } -Json::Value -STMPTAmount::getJson(JsonOptions) const +Json::Value STMPTAmount::getJson(JsonOptions) const { Json::Value elem; setJson(elem);