Skip to content

Commit

Permalink
Minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 14, 2017
1 parent 4c432a1 commit 1e145b3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,7 @@ void QgsMapCanvas::rendererJobFinished()
void QgsMapCanvas::previewJobFinished()
{
QgsMapRendererQImageJob *job = qobject_cast<QgsMapRendererQImageJob *>( sender() );
if ( !job )
{
return;
}
Q_ASSERT( job );

if ( mMap )
{
Expand Down Expand Up @@ -2166,8 +2163,8 @@ void QgsMapCanvas::startPreviewJobs()

void QgsMapCanvas::stopPreviewJobs()
{
QList< QgsMapRendererQImageJob * >::iterator it = mPreviewJobs.begin();
for ( ; it != mPreviewJobs.end(); ++it )
QList< QgsMapRendererQImageJob * >::const_iterator it = mPreviewJobs.constBegin();
for ( ; it != mPreviewJobs.constEnd(); ++it )
{
if ( *it )
{
Expand Down

0 comments on commit 1e145b3

Please sign in to comment.