summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-26 13:48:25 +0200
committerNoel Grandin <noel@peralex.com>2015-08-26 13:52:28 +0200
commit93157d284ea37cca200759804268c0a872852549 (patch)
tree7116d9eb94ecfc115db83f2155ba686037f618d8 /include/svtools
parentcadac8400a018c8c566379f7767ea5edff78523d (diff)
convert Link to Typed
and make it statically allocated, no point in dynamically allocating such a small object Change-Id: If476bf5dc1e0d535383d16bc49c8d567776f16cd
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/grfmgr.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index 70f635f6126a..3ea3097d37d4 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -184,7 +184,7 @@ private:
GraphicType meType;
GraphicManager* mpMgr;
OUString maLink;
- Link<>* mpSwapStreamHdl;
+ Link<const GraphicObject*, SvStream*> maSwapStreamHdl;
OUString maUserData;
Timer* mpSwapOutTimer;
GrfSimpleCacheObj* mpSimpleCache;
@@ -339,9 +339,9 @@ public:
bool operator==( const GraphicObject& rCacheObj ) const;
bool operator!=( const GraphicObject& rCacheObj ) const { return !( *this == rCacheObj ); }
- bool HasSwapStreamHdl() const { return( mpSwapStreamHdl != NULL && mpSwapStreamHdl->IsSet() ); }
+ bool HasSwapStreamHdl() const { return maSwapStreamHdl.IsSet(); }
void SetSwapStreamHdl();
- void SetSwapStreamHdl(const Link<>& rHdl);
+ void SetSwapStreamHdl(const Link<const GraphicObject*, SvStream*>& rHdl);
void FireSwapInRequest();
void FireSwapOutRequest();