mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Using const ref parameter
This commit is contained in:
parent
344e7679d7
commit
7e1ef99146
@ -50,12 +50,12 @@ template <typename T>
|
||||
class RiuTypedObjectsFromObjectGroupGetter
|
||||
{
|
||||
public:
|
||||
RiuTypedObjectsFromObjectGroupGetter(caf::PdmObjectGroup& objectGroup)
|
||||
RiuTypedObjectsFromObjectGroupGetter(const caf::PdmObjectGroup& objectGroup)
|
||||
{
|
||||
objectGroup.objectsByType(&m_typedObjects);
|
||||
}
|
||||
|
||||
static std::vector<T*> typedObjectsFromGroup(caf::PdmObjectGroup& objectGroup)
|
||||
static std::vector<T*> typedObjectsFromGroup(const caf::PdmObjectGroup& objectGroup)
|
||||
{
|
||||
RiuTypedObjectsFromObjectGroupGetter<T> typedObjectsGetter(objectGroup);
|
||||
return typedObjectsGetter.typedObjects();
|
||||
|
Loading…
Reference in New Issue
Block a user