diff --git a/pvtoolsSrc/pvutils.cpp b/pvtoolsSrc/pvutils.cpp index a727169..cdf8283 100644 --- a/pvtoolsSrc/pvutils.cpp +++ b/pvtoolsSrc/pvutils.cpp @@ -105,11 +105,11 @@ std::ostream& terse(std::ostream& o, PVField::shared_pointer const & pv) std::ostream& printEnumT(std::ostream& o, epics::pvData::PVStructure const & pvEnumT) { - PVInt::shared_pointer pvIndex = pvEnumT.getSubField("index"); + PVInt::const_shared_pointer pvIndex = pvEnumT.getSubField("index"); if (!pvIndex) throw std::runtime_error("enum_t structure does not have 'int index' field"); - PVStringArray::shared_pointer pvChoices = pvEnumT.getSubField("choices"); + PVStringArray::const_shared_pointer pvChoices = pvEnumT.getSubField("choices"); if (!pvChoices) throw std::runtime_error("enum_t structure does not have 'string choices[]' field");