Skip to content
Permalink
Browse files

[:)] Make a developer happy

  • Loading branch information
elpaso committed Oct 3, 2017
1 parent d102404 commit afecc2101299dcf55eff7a9c0167da8b4fe3a096
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/providers/wms/qgstilecache.cpp
@@ -33,10 +33,11 @@ void QgsTileCache::insertTile( const QUrl &url, const QImage &image )
bool QgsTileCache::tile( const QUrl &url, QImage &image )
{
QMutexLocker locker( &sTileCacheMutex );
bool success = false;
if ( QImage *i = sTileCache.object( url ) )
{
image = *i;
return true;
success = true;
}
else if ( QgsNetworkAccessManager::instance()->cache()->metaData( url ).isValid() )
{
@@ -52,9 +53,9 @@ bool QgsTileCache::tile( const QUrl &url, QImage &image )
if ( ! image.isNull( ) )
{
sTileCache.insert( url, new QImage( image ) );
return true;
success = true;
}
}
}
return false;
return success;
}

0 comments on commit afecc21

Please sign in to comment.
You can’t perform that action at this time.