File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -150,14 +150,8 @@ void checkDock::deleteErrors()
150
150
mErrorList .clear ();
151
151
mErrorListModel ->resetModel ();
152
152
153
- QList<QgsRubberBand*>::const_iterator rit;
154
-
155
- for ( rit = mRbErrorMarkers .begin (); rit != mRbErrorMarkers .end (); ++rit )
156
- {
157
- QgsRubberBand* rb = *rit;
158
- rb->reset ();
159
- delete rb;
160
- }
153
+ qDeleteAll ( mRbErrorMarkers );
154
+ mRbErrorMarkers .clear ();
161
155
}
162
156
163
157
void checkDock::parseErrorListByLayer ( QString layerId )
@@ -397,14 +391,7 @@ void checkDock::validate( ValidateType type )
397
391
{
398
392
mErrorList .clear ();
399
393
400
- QList<QgsRubberBand*>::const_iterator it;
401
- for ( it = mRbErrorMarkers .begin (); it != mRbErrorMarkers .end (); ++it )
402
- {
403
- QgsRubberBand* rb = *it;
404
- rb->reset ();
405
- delete rb;
406
- }
407
-
394
+ qDeleteAll ( mRbErrorMarkers );
408
395
mRbErrorMarkers .clear ();
409
396
410
397
runTests ( type );
You can’t perform that action at this time.
0 commit comments