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
@@ -77,9 +77,9 @@ public:
|
||||
p_ = t.copy(sizeof(d_), &d_);
|
||||
}
|
||||
|
||||
STVar (defaultObject_t, SField::ref name);
|
||||
STVar (nonPresentObject_t, SField::ref name);
|
||||
STVar (SerialIter& sit, SField::ref name);
|
||||
STVar (defaultObject_t, SField const& name);
|
||||
STVar (nonPresentObject_t, SField const& name);
|
||||
STVar (SerialIter& sit, SField const& name);
|
||||
|
||||
STBase& get() { return *p_; }
|
||||
STBase& operator*() { return get(); }
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
STBase const* operator->() const { return &get(); }
|
||||
|
||||
private:
|
||||
STVar (SerializedTypeID id, SField::ref name);
|
||||
STVar (SerializedTypeID id, SField const& name);
|
||||
|
||||
void destroy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user