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
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
STBitString () = default;
|
||||
|
||||
STBitString (SField::ref n)
|
||||
STBitString (SField const& n)
|
||||
: STBase (n)
|
||||
{ }
|
||||
|
||||
@@ -41,23 +41,23 @@ public:
|
||||
: bitString_ (v)
|
||||
{ }
|
||||
|
||||
STBitString (SField::ref n, const BitString& v)
|
||||
STBitString (SField const& n, const BitString& v)
|
||||
: STBase (n), bitString_ (v)
|
||||
{ }
|
||||
|
||||
STBitString (SField::ref n, const char* v)
|
||||
STBitString (SField const& n, const char* v)
|
||||
: STBase (n)
|
||||
{
|
||||
bitString_.SetHex (v);
|
||||
}
|
||||
|
||||
STBitString (SField::ref n, std::string const& v)
|
||||
STBitString (SField const& n, std::string const& v)
|
||||
: STBase (n)
|
||||
{
|
||||
bitString_.SetHex (v);
|
||||
}
|
||||
|
||||
STBitString (SerialIter& sit, SField::ref name)
|
||||
STBitString (SerialIter& sit, SField const& name)
|
||||
: STBitString(name, sit.getBitString<Bits>())
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user