Commit 77786d9d authored by Floris Berendsen's avatar Floris Berendsen
Browse files

ENH: added some constness

parent 6c597022
......@@ -62,7 +62,7 @@ public:
NetworkBuilder();
virtual ~NetworkBuilder() {};
virtual bool AddBlueprint(std::shared_ptr< Blueprint > blueprint);
virtual bool AddBlueprint(const std::shared_ptr<Blueprint> &blueprint);
/** Read configuration at the blueprints nodes and edges and return true if all components could be uniquely selected*/
virtual bool Configure();
......
......@@ -31,9 +31,9 @@ NetworkBuilder<ComponentList>::NetworkBuilder() : m_isConfigured(false)
template< typename ComponentList >
bool
NetworkBuilder<ComponentList>::AddBlueprint(std::shared_ptr< Blueprint > blueprint)
NetworkBuilder<ComponentList>::AddBlueprint(const std::shared_ptr<Blueprint> &blueprint)
{
m_Blueprint = blueprint;
m_Blueprint = std::make_shared< Blueprint >(*blueprint);
return true;
}
......
......@@ -64,7 +64,7 @@ public:
virtual ~NetworkBuilderBase() {};
virtual bool AddBlueprint(std::shared_ptr< Blueprint > blueprint) = 0;
virtual bool AddBlueprint(const std::shared_ptr<Blueprint> &blueprint) = 0;
/** Read configuration at the blueprints nodes and edges and return true if all components could be uniquely selected*/
virtual bool Configure() = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment