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
@@ -111,17 +111,17 @@ STVar::operator= (STVar&& rhs)
|
||||
return *this;
|
||||
}
|
||||
|
||||
STVar::STVar (defaultObject_t, SField::ref name)
|
||||
STVar::STVar (defaultObject_t, SField const& name)
|
||||
: STVar(name.fieldType, name)
|
||||
{
|
||||
}
|
||||
|
||||
STVar::STVar (nonPresentObject_t, SField::ref name)
|
||||
STVar::STVar (nonPresentObject_t, SField const& name)
|
||||
: STVar(STI_NOTPRESENT, name)
|
||||
{
|
||||
}
|
||||
|
||||
STVar::STVar (SerialIter& sit, SField::ref name)
|
||||
STVar::STVar (SerialIter& sit, SField const& name)
|
||||
{
|
||||
switch (name.fieldType)
|
||||
{
|
||||
@@ -145,7 +145,7 @@ STVar::STVar (SerialIter& sit, SField::ref name)
|
||||
}
|
||||
}
|
||||
|
||||
STVar::STVar (SerializedTypeID id, SField::ref name)
|
||||
STVar::STVar (SerializedTypeID id, SField const& name)
|
||||
{
|
||||
assert ((id == STI_NOTPRESENT) || (id == name.fieldType));
|
||||
switch (id)
|
||||
|
||||
Reference in New Issue
Block a user