mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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
@@ -50,19 +50,19 @@ STArray::STArray (int n)
|
||||
v_.reserve(n);
|
||||
}
|
||||
|
||||
STArray::STArray (SField::ref f)
|
||||
STArray::STArray (SField const& f)
|
||||
: STBase (f)
|
||||
{
|
||||
v_.reserve(reserveSize);
|
||||
}
|
||||
|
||||
STArray::STArray (SField::ref f, int n)
|
||||
STArray::STArray (SField const& f, int n)
|
||||
: STBase (f)
|
||||
{
|
||||
v_.reserve(n);
|
||||
}
|
||||
|
||||
STArray::STArray (SerialIter& sit, SField::ref f)
|
||||
STArray::STArray (SerialIter& sit, SField const& f)
|
||||
: STBase(f)
|
||||
{
|
||||
while (!sit.empty ())
|
||||
@@ -80,7 +80,7 @@ STArray::STArray (SerialIter& sit, SField::ref f)
|
||||
throw std::runtime_error ("Illegal terminator in array");
|
||||
}
|
||||
|
||||
SField::ref const fn = SField::getField (type, field);
|
||||
auto const& fn = SField::getField (type, field);
|
||||
|
||||
if (fn.isInvalid ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user