Skip to content
Permalink
Browse files
Unreachable
  • Loading branch information
nyalldawson committed Nov 9, 2021
1 parent c15ff5e commit ebef5331eec8bf8792cf5cfc1b7a669a07fdb3f6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/analysis/network/qgsgraph.cpp
@@ -50,6 +50,7 @@ const QgsGraphVertex &QgsGraph::vertex( int idx ) const
if ( it != mGraphVertices.constEnd() )
return ( it ).value();
Q_ASSERT_X( false, "QgsGraph::vertex()", "Invalid vertex ID" );
BUILTIN_UNREACHABLE
}

void QgsGraph::removeVertex( int index )
@@ -76,6 +77,7 @@ const QgsGraphEdge &QgsGraph::edge( int idx ) const
if ( it != mGraphEdges.constEnd() )
return ( it ).value();
Q_ASSERT_X( false, "QgsGraph::edge()", "Invalid edge ID" );
BUILTIN_UNREACHABLE
}

void QgsGraph::removeEdge( int index )

0 comments on commit ebef533

Please sign in to comment.