Skip to content
Permalink
Browse files

forward declaration issue

  • Loading branch information
m-kuhn committed Mar 26, 2021
1 parent 0ba0ceb commit 14a20daba2e2d382e0364b1eb9f2cd4a30b16c0f
Showing with 14 additions and 2 deletions.
  1. +12 −0 src/core/qgstilecache.cpp
  2. +2 −2 src/core/qgstilecache.h
@@ -60,3 +60,15 @@ bool QgsTileCache::tile( const QUrl &url, QImage &image )
}
return success;
}

int QgsTileCache::totalCost()
{
QMutexLocker locker( &sTileCacheMutex );
return sTileCache.totalCost();
}

int QgsTileCache::maxCost()
{
QMutexLocker locker( &sTileCacheMutex );
return sTileCache.maxCost();
}
@@ -51,9 +51,9 @@ class CORE_EXPORT QgsTileCache
static bool tile( const QUrl &url, QImage &image );

//! how many tiles are stored in the in-memory cache
static int totalCost() { QMutexLocker locker( &sTileCacheMutex ); return sTileCache.totalCost(); }
static int totalCost();
//! how many tiles can be stored in the in-memory cache
static int maxCost() { QMutexLocker locker( &sTileCacheMutex ); return sTileCache.maxCost(); }
static int maxCost();

private:
//! in-memory cache

0 comments on commit 14a20da

Please sign in to comment.