return StringArray instead of StringArray & for choices

This commit is contained in:
Marty Kraimer
2012-05-15 16:06:33 -04:00
parent ca195b44cf
commit 27ce426f46
3 changed files with 3 additions and 9 deletions
+1 -2
View File
@@ -88,14 +88,13 @@ bool PVEnumerated::choicesMutable()
return pvChoices->isImmutable();
}
StringArray& PVEnumerated:: getChoices()
StringArray PVEnumerated:: getChoices()
{
if(pvIndex.get()==NULL ) {
throw std::logic_error(notAttached);
}
StringArrayData data;
pvChoices->get(0,pvChoices->getLength(),data);
printf("getChoices %p size %d\n",&data.data,data.data.size());
return data.data;
}