Skip to content
Snippets Groups Projects
Commit c8e4c43e authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Use `.empty()` method instead of `.size() == 0`

parent 838e1ce5
No related branches found
No related tags found
1 merge request!156Cleanup UGGrid code
......@@ -260,7 +260,7 @@ createGrid()
typedef typename std::set<UGGridBoundarySegment<dimworld> >::iterator SetIterator;
BoundaryExtractor::detectBoundarySegments(elementTypes_, elementVertices_, boundarySegments);
if (boundarySegments.size() == 0)
if (boundarySegments.empty())
DUNE_THROW(GridError, "Couldn't extract grid boundary.");
std::vector<int> isBoundaryNode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment