Remove calls of deprecated getScalarArrayField

This commit is contained in:
Dave Hickin
2015-07-24 15:00:25 +01:00
parent 07661a0916
commit 0af5599457
3 changed files with 12 additions and 18 deletions

View File

@@ -381,7 +381,7 @@ static epics::pvData::PVStructure::shared_pointer createNTHistogram()
static void generateNTTableDoubleValues(epics::pvData::PVStructure::shared_pointer result)
{
PVStringArray::shared_pointer pvLabels = (static_pointer_cast<PVStringArray>(result->getScalarArrayField("labels", pvString)));
PVStringArray::shared_pointer pvLabels = result->getSubField<PVStringArray>("labels");
PVStringArray::const_svector ld(pvLabels->view());
PVStructure::shared_pointer resultValue = result->getSubField<PVStructure>("value");
@@ -2110,7 +2110,7 @@ protected:
string allProperties("");
// string allProperties("alarm,timeStamp,display,control");
m_pvStructure = getStandardPVField()->scalarArray(pvDouble,allProperties);
PVDoubleArrayPtr pvField = static_pointer_cast<PVDoubleArray>(m_pvStructure->getScalarArrayField(std::string("value"), pvDouble));
PVDoubleArrayPtr pvField = m_pvStructure->getSubField<PVDoubleArray>("value");
int specCount = 0; char postfix[64];
int done = sscanf(m_name.c_str(), "testArray%d%s", &specCount, postfix);