From 63ebdce9dd05b053c61e378615c599a41c525d3b Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 22 Jun 2015 14:49:48 -0400 Subject: [PATCH] use getSubField --- src/remoteClient/clientContextImpl.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 27e2ac6..8ead845 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -2400,13 +2400,11 @@ namespace epics { } int queueSize = 2; - PVFieldPtr pvField = m_pvRequest->getSubField("record._options"); - if (pvField.get()) { - PVStructurePtr pvOptions = static_pointer_cast(pvField); - pvField = pvOptions->getSubField("queueSize"); - if (pvField.get()) { - PVStringPtr pvString = pvOptions->getStringField("queueSize"); - if(pvString) { + { + PVStructurePtr pvOptions = m_pvRequest->getSubField("record._options"); + if(pvOptions.get()) { + PVStringPtr pvString = pvOptions->getSubField("queueSize"); + if(pvString.get()) { int32 size; std::stringstream ss; ss << pvString->get();