PVS: V595 A pointer was utilized before it was verified against nullptr
This commit is contained in:
@@ -289,8 +289,8 @@ void QGEPath::clearMarkers()
|
||||
return;
|
||||
}
|
||||
for (auto& m: m_markers) {
|
||||
m->hide();
|
||||
if (m != nullptr) {
|
||||
m->hide();
|
||||
QGraphicsScene* s = m->scene();
|
||||
if (s != nullptr) {
|
||||
s->removeItem(m); //should this be setParentItem(nullptr) instead??
|
||||
|
||||
Reference in New Issue
Block a user