mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove nested types SField::ref and SField::ptr...
* This silences a warning about a redundant cv-qualifier. * This makes future coding mistakes about redundant cv-qualifiers much less likely. * This makes the code easier to read.
This commit is contained in:
committed by
Tom Ritchford
parent
47482acf83
commit
100a76f0e8
@@ -30,13 +30,13 @@ class STAccount final
|
||||
: public STBlob
|
||||
{
|
||||
public:
|
||||
STAccount (SField::ref n, Buffer&& v)
|
||||
STAccount (SField const& n, Buffer&& v)
|
||||
: STBlob (n, std::move(v))
|
||||
{
|
||||
;
|
||||
}
|
||||
STAccount (SField::ref n, Account const& v);
|
||||
STAccount (SField::ref n) : STBlob (n)
|
||||
STAccount (SField const& n, Account const& v);
|
||||
STAccount (SField const& n) : STBlob (n)
|
||||
{
|
||||
;
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
;
|
||||
}
|
||||
|
||||
STAccount (SerialIter& sit, SField::ref name);
|
||||
STAccount (SerialIter& sit, SField const& name);
|
||||
|
||||
STBase*
|
||||
copy (std::size_t n, void* buf) const override
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
bool isValueH160 () const;
|
||||
|
||||
private:
|
||||
static STAccount* construct (SerialIter&, SField::ref);
|
||||
static STAccount* construct (SerialIter&, SField const&);
|
||||
};
|
||||
|
||||
} // ripple
|
||||
|
||||
Reference in New Issue
Block a user