summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-12-19 13:01:46 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2015-03-06 12:27:04 +0000
commit9e678c14e4fc8e58b1e0530744f648fa3958d338 (patch)
tree53ccb6244cff1b2ee39bc4d7605f103108fa45bc /svtools
parent1028643bc7d294e4c32b4ccea288d90088abae53 (diff)
Timer: Reversed some Idles to Timer
Change-Id: I213722cc98490430378014290cb09cca9e469bbb
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/grfcache.cxx6
-rw-r--r--svtools/source/graphic/grfcache.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 485dfed7f5e4..d6d04fcc78c7 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -810,9 +810,9 @@ GraphicCache::GraphicCache( sal_uLong nDisplayCacheSize, sal_uLong nMaxObjDispla
mnMaxObjDisplaySize ( nMaxObjDisplayCacheSize ),
mnUsedDisplaySize ( 0UL )
{
- maReleaseIdle.SetIdleHdl( LINK( this, GraphicCache, ReleaseTimeoutHdl ) );
- maReleaseIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
- maReleaseIdle.Start();
+ maReleaseTimer.SetTimeoutHdl( LINK( this, GraphicCache, ReleaseTimeoutHdl ) );
+ maReleaseTimer.SetTimeout( 10000 );
+ maReleaseTimer.Start();
}
GraphicCache::~GraphicCache()
diff --git a/svtools/source/graphic/grfcache.hxx b/svtools/source/graphic/grfcache.hxx
index 968c31290bbd..a1c990c08ea7 100644
--- a/svtools/source/graphic/grfcache.hxx
+++ b/svtools/source/graphic/grfcache.hxx
@@ -39,7 +39,7 @@ private:
typedef std::list< GraphicCacheEntry* > GraphicCacheEntryList;
typedef std::list< GraphicDisplayCacheEntry* > GraphicDisplayCacheEntryList;
- Idle maReleaseIdle;
+ Timer maReleaseTimer;
GraphicCacheEntryList maGraphicCache;
GraphicDisplayCacheEntryList maDisplayCache;
sal_uLong mnReleaseTimeoutSeconds;