Replace calls of deprecated subfield functions

The non-template functions for getting subfields of a PVStructure, such
as PVStructure::getIntField were marked as deprecated in the 4.4 release
and now generate build warnings. Replace calls of these functions with
calls of the template function getSubField, e.g. getSubField<PVInt>.
This commit is contained in:
Dave Hickin
2015-07-15 19:06:04 +01:00
parent 81b160d7b6
commit 6b0d1ce49b
4 changed files with 10 additions and 11 deletions

View File

@@ -62,11 +62,11 @@ bool TraceRecord::init()
{
initPVRecord();
PVStructurePtr pvStructure = getPVStructure();
pvRecordName = pvStructure->getStringField("argument.recordName");
pvRecordName = pvStructure->getSubField<PVString>("argument.recordName");
if(!pvRecordName) return false;
pvLevel = pvStructure->getIntField("argument.level");
pvLevel = pvStructure->getSubField<PVInt>("argument.level");
if(!pvLevel) return false;
pvResult = pvStructure->getStringField("result.status");
pvResult = pvStructure->getSubField<PVString>("result.status");
if(!pvResult) return false;
return true;
}