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
@@ -47,14 +47,14 @@ public:
|
||||
void(void* data, std::size_t size)
|
||||
*/
|
||||
template <class Init>
|
||||
STBlob (SField::ref f, std::size_t size,
|
||||
STBlob (SField const& f, std::size_t size,
|
||||
Init&& init)
|
||||
: STBase(f), value_ (size)
|
||||
{
|
||||
init(value_.data(), value_.size());
|
||||
}
|
||||
|
||||
STBlob (SField::ref f,
|
||||
STBlob (SField const& f,
|
||||
void const* data, std::size_t size)
|
||||
: STBase(f), value_ (data, size)
|
||||
{
|
||||
@@ -65,12 +65,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
STBlob (SField::ref n)
|
||||
STBlob (SField const& n)
|
||||
: STBase (n)
|
||||
{
|
||||
}
|
||||
|
||||
STBlob (SerialIter&, SField::ref name = sfGeneric);
|
||||
STBlob (SerialIter&, SField const& name = sfGeneric);
|
||||
|
||||
STBase*
|
||||
copy (std::size_t n, void* buf) const override
|
||||
|
||||
Reference in New Issue
Block a user