non-copy (by reference) retrival of getFields()/getPVFields()/getFieldNames()

This commit is contained in:
Matej Sekoranja
2015-01-30 11:35:43 +01:00
parent e39346d51e
commit 4acf7edf95
8 changed files with 24 additions and 24 deletions

View File

@@ -527,7 +527,7 @@ PVFieldPtr PVDataCreate::createPVField(PVFieldPtr const & fieldToClone)
PVStructurePtr pvStructure
= static_pointer_cast<PVStructure>(fieldToClone);
StringArray const & fieldNames = pvStructure->getStructure()->getFieldNames();
PVFieldPtrArray pvFieldPtrArray = pvStructure->getPVFields();
PVFieldPtrArray const & pvFieldPtrArray = pvStructure->getPVFields();
return createPVStructure(fieldNames,pvFieldPtrArray);
}
case structureArray: