c++98 compatible, but still reduced, number of getSubField() specializations

This commit is contained in:
Michael Davidsaver
2017-08-16 11:07:29 +02:00
parent 08a92468fe
commit 78b51ebe59
2 changed files with 53 additions and 91 deletions

View File

@@ -199,7 +199,7 @@ PVFieldPtr PVStructure::getSubFieldImpl(const char *name, bool throws) const
throw std::runtime_error(ss.str());
}
else
return NULL;
return PVFieldPtr();
}
child = NULL;
name = sep+1; // skip past '.'