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:
@@ -149,7 +149,7 @@ ChannelProcessLocalPtr ChannelProcessLocal::create(
|
||||
pvOptions = static_pointer_cast<PVStructure>(pvField);
|
||||
pvField = pvOptions->getSubField("nProcess");
|
||||
if(pvField) {
|
||||
PVStringPtr pvString = pvOptions->getStringField("nProcess");
|
||||
PVStringPtr pvString = pvOptions->getSubField<PVString>("nProcess");
|
||||
if(pvString) {
|
||||
int size;
|
||||
std::stringstream ss;
|
||||
|
||||
Reference in New Issue
Block a user