diff options
Diffstat (limited to 'sw/source/core/inc/swcache.hxx')
-rw-r--r-- | sw/source/core/inc/swcache.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/inc/swcache.hxx b/sw/source/core/inc/swcache.hxx index a481bbff28ff..2cc6138cb2b1 100644 --- a/sw/source/core/inc/swcache.hxx +++ b/sw/source/core/inc/swcache.hxx @@ -117,15 +117,12 @@ public: sal_uInt16 size() { return m_aCacheObjects.size(); } }; -/// Safely manipulate the cache +/// Try to prevent visible SwParaPortions from being deleted. class SwSaveSetLRUOfst { - SwCache &rCache; public: - SwSaveSetLRUOfst( SwCache &rC, const sal_uInt16 nOfst ) - : rCache( rC ) { rCache.SetLRUOfst( nOfst ); } - - ~SwSaveSetLRUOfst() { rCache.ResetLRUOfst(); } + SwSaveSetLRUOfst(); + ~SwSaveSetLRUOfst(); }; /** |