use new API

make copying explicit and replace some
use of PVValueArray<T>::put and get
This commit is contained in:
Michael Davidsaver
2013-05-08 15:16:58 -04:00
parent e843779555
commit 992ac73068
6 changed files with 21 additions and 32 deletions

View File

@@ -166,8 +166,8 @@ void PrinterPlain::encodeScalar(const PVScalar& pv)
void PrinterPlain::encodeArray(const PVScalarArray& pv)
{
indentN(S(), ilvl);
StringArray temp(pv.getLength()); // TODO: no copy
pv.getAs<pvString>(&temp[0], temp.size());
shared_vector<String> temp;
pv.getAs<pvString>(temp);
S() << pv.getScalarArray()->getID() << " "
<< pv.getFieldName() << " [";