diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-13 09:33:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-13 10:49:57 +0200 |
commit | 200e336d1d5c036b5ecd308d93e4131274b1efb8 (patch) | |
tree | cd81d3e0a7e0d68a9ebcd90c346594aab8a89fc8 /include/sfx2/app.hxx | |
parent | 63e1890675ecaaf50d855a1daf85fc41798bb898 (diff) |
make Link<> instances typed
Change-Id: I7d20875cc498d54140cfe75b21373fdab9c369ce
Diffstat (limited to 'include/sfx2/app.hxx')
-rw-r--r-- | include/sfx2/app.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/sfx2/app.hxx b/include/sfx2/app.hxx index 77e626734149..01238307b5e4 100644 --- a/include/sfx2/app.hxx +++ b/include/sfx2/app.hxx @@ -93,15 +93,17 @@ namespace sfx2 class SfxLinkItem : public SfxPoolItem { - Link<> aLink; + Link<SfxPoolItem*, void> aLink; public: + SfxLinkItem( sal_uInt16 nWhichId, const Link<SfxPoolItem*, void>& rValue ) : SfxPoolItem( nWhichId ) + { aLink = rValue; } + virtual SfxPoolItem* Clone( SfxItemPool* = 0 ) const SAL_OVERRIDE { return new SfxLinkItem( *this ); } virtual bool operator==( const SfxPoolItem& rL) const SAL_OVERRIDE { return static_cast<const SfxLinkItem&>(rL).aLink == aLink; } - SfxLinkItem( sal_uInt16 nWhichId, const Link<>& rValue ) : SfxPoolItem( nWhichId ) - { aLink = rValue; } - const Link<>& GetValue() const { return aLink; } + const Link<SfxPoolItem*, void>& + GetValue() const { return aLink; } }; #ifndef SFX_DECL_OBJECTSHELL_DEFINED |