Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 11, 2019
1 parent b34539a commit 1628f85
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -622,17 +622,10 @@ bool QgsMapToolCapture::isCapturing() const

void QgsMapToolCapture::stopCapturing()
{
if ( mRubberBand )
{
delete mRubberBand;
mRubberBand = nullptr;
}
delete mRubberBand;
mRubberBand = nullptr;

if ( mTempRubberBand )
{
delete mTempRubberBand;
mTempRubberBand = nullptr;
}
deleteTempRubberBand();

while ( !mGeomErrorMarkers.isEmpty() )
{
Expand All @@ -652,11 +645,8 @@ void QgsMapToolCapture::stopCapturing()

void QgsMapToolCapture::deleteTempRubberBand()
{
if ( mTempRubberBand )
{
delete mTempRubberBand;
mTempRubberBand = nullptr;
}
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

void QgsMapToolCapture::clean()
Expand Down

0 comments on commit 1628f85

Please sign in to comment.