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,7 +30,7 @@ STBase::STBase()
{
}
STBase::STBase (SField::ref n)
STBase::STBase (SField const& n)
: fName(&n)
{
assert(fName);
@@ -126,13 +126,13 @@ STBase::isDefault() const
}
void
STBase::setFName (SField::ref n)
STBase::setFName (SField const& n)
{
fName = &n;
assert (fName);
}
SField::ref
SField const&
STBase::getFName() const
{
return *fName;