Skip to content

Commit afecc21

Browse files
committedOct 3, 2017
[:)] Make a developer happy
1 parent d102404 commit afecc21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎src/providers/wms/qgstilecache.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ void QgsTileCache::insertTile( const QUrl &url, const QImage &image )
3333
bool QgsTileCache::tile( const QUrl &url, QImage &image )
3434
{
3535
QMutexLocker locker( &sTileCacheMutex );
36+
bool success = false;
3637
if ( QImage *i = sTileCache.object( url ) )
3738
{
3839
image = *i;
39-
return true;
40+
success = true;
4041
}
4142
else if ( QgsNetworkAccessManager::instance()->cache()->metaData( url ).isValid() )
4243
{
@@ -52,9 +53,9 @@ bool QgsTileCache::tile( const QUrl &url, QImage &image )
5253
if ( ! image.isNull( ) )
5354
{
5455
sTileCache.insert( url, new QImage( image ) );
55-
return true;
56+
success = true;
5657
}
5758
}
5859
}
59-
return false;
60+
return success;
6061
}

0 commit comments

Comments
 (0)
Please sign in to comment.