Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Oct 15, 2023
1 parent ab729f1 commit 01296cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ripple/app/tx/impl/OfferStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ accountFundsHelper(

template <class TIn, class TOut>
template <class TTakerPays, class TTakerGets>
requires ValidTaker<TTakerPays, TTakerGets> bool
requires ValidTaker<TTakerPays, TTakerGets> bool
TOfferStreamBase<TIn, TOut>::shouldRmSmallIncreasedQOffer() const
{
if (!view_.rules().enabled(fixRmSmallIncreasedQOffers))
Expand Down
4 changes: 3 additions & 1 deletion src/ripple/app/tx/impl/OfferStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

namespace ripple {

// clang-format off
template <class TTakerPays, class TTakerGets>
concept ValidTaker =
((std::is_same_v<TTakerPays, IOUAmount> ||
Expand All @@ -42,6 +43,7 @@ concept ValidTaker =
std::is_same_v<TTakerGets, CFTAmount>) &&
(!std::is_same_v<TTakerPays, XRPAmount> ||
!std::is_same_v<TTakerGets, XRPAmount>));
// clang-format on

template <class TIn, class TOut>
class TOfferStreamBase
Expand Down Expand Up @@ -97,7 +99,7 @@ class TOfferStreamBase
permRmOffer(uint256 const& offerIndex) = 0;

template <class TTakerPays, class TTakerGets>
requires ValidTaker<TTakerPays, TTakerGets> bool
requires ValidTaker<TTakerPays, TTakerGets> bool
shouldRmSmallIncreasedQOffer() const;

public:
Expand Down

0 comments on commit 01296cd

Please sign in to comment.