don't use deprecated PVValueArray<T>::get()

This commit is contained in:
Michael Davidsaver
2013-07-25 17:54:46 -04:00
parent e96b447e37
commit 0860f8e6f9
4 changed files with 18 additions and 27 deletions

View File

@@ -118,13 +118,16 @@ void PrinterBase::impl_print(const PVField& pv)
}
case structureArray: {
const PVStructureArray &fld = *static_cast<const PVStructureArray*>(next);
const PVStructureArray::pointer vals = fld.get();
PVStructureArray::const_svector vals(fld.view());
inprog.push_back(next);
beginStructureArray(fld);
for(size_t i=0, nfld=fld.getLength(); i<nfld; i++)
todo.push_back(vals[i].get());
for(PVStructureArray::const_svector::const_iterator it=vals.begin();
it!=vals.end(); ++it)
{
todo.push_back(it->get());
}
todo.push_back(marker);
break;