Skip to content

Commit

Permalink
Unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 9, 2021
1 parent c15ff5e commit ebef533
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/network/qgsgraph.cpp
Expand Up @@ -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 )
Expand All @@ -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 )
Expand Down

0 comments on commit ebef533

Please sign in to comment.