[Path] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 02:52:48 +02:00
parent 16c86a6d08
commit c35579227b
9 changed files with 11 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ VoronoiEdge::~VoronoiEdge() {
}
bool VoronoiEdge::isBound(void) const {
if (ptr != nullptr && dia.isValid() && index != Voronoi::InvalidIndex) {
if (ptr && dia.isValid() && index != Voronoi::InvalidIndex) {
if (&(dia->edges()[index]) == ptr) {
return true;
}