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

@@ -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;