PVStructure::getStructure() avoid creation of temporary
avoid some ref-counter activity
This commit is contained in:
@@ -74,7 +74,7 @@ void PVStructure::setImmutable()
|
||||
PVField::setImmutable();
|
||||
}
|
||||
|
||||
StructureConstPtr PVStructure::getStructure() const
|
||||
const StructureConstPtr& PVStructure::getStructure() const
|
||||
{
|
||||
return structurePtr;
|
||||
}
|
||||
|
||||
@@ -756,7 +756,7 @@ public:
|
||||
* Get the introspection interface
|
||||
* @return The interface.
|
||||
*/
|
||||
StructureConstPtr getStructure() const;
|
||||
const StructureConstPtr &getStructure() const;
|
||||
/**
|
||||
* Get the array of pointers to the subfields in the structure.
|
||||
* @return The array.
|
||||
|
||||
Reference in New Issue
Block a user