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:
Howard Hinnant
2015-04-21 21:33:48 -04:00
committed by Tom Ritchford
parent 47482acf83
commit 100a76f0e8
30 changed files with 198 additions and 197 deletions

View File

@@ -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