diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 9c28d64592..4a5c2e695c 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -1770,7 +1770,7 @@ int CONNECTION_GRAPH::assignNewNetCode( SCH_CONNECTION& aConnection ) void CONNECTION_GRAPH::assignNetCodesToBus( SCH_CONNECTION* aConnection ) { - std::vector< std::shared_ptr>& connections_to_check( aConnection->Members() ); + std::vector> connections_to_check( aConnection->Members() ); for( unsigned i = 0; i < connections_to_check.size(); i++ ) { diff --git a/eeschema/sch_connection.h b/eeschema/sch_connection.h index c846fc79e8..3ec40c746a 100644 --- a/eeschema/sch_connection.h +++ b/eeschema/sch_connection.h @@ -185,11 +185,6 @@ public: wxString VectorPrefix() const { return m_vector_prefix; } - std::vector< std::shared_ptr< SCH_CONNECTION > >& Members() - { - return m_members; - } - const std::vector< std::shared_ptr< SCH_CONNECTION > >& Members() const { return m_members; diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp index e9f608ebb1..cd63db6899 100644 --- a/eeschema/sch_line.cpp +++ b/eeschema/sch_line.cpp @@ -903,7 +903,7 @@ void SCH_LINE::Plot( PLOTTER* aPlotter, bool aBackground ) const { if( SCH_CONNECTION* connection = Connection() ) { - for( std::shared_ptr& member : connection->Members() ) + for( const std::shared_ptr& member : connection->Members() ) properties.emplace_back( wxT( "!" ) + member->Name() ); }