diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-15 15:33:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-16 08:38:55 +0200 |
commit | d30aedb2a381e89a5a3466f06c95ff7636c9306d (patch) | |
tree | 8f93c330551b4fd7936377067eba63bbd029ec03 | |
parent | 7beefb1fe6e56bfaf24d4660e11baf5abfa3b675 (diff) |
convert Link<> to typed
Change-Id: Id5be64f38fa448271a5364c86c32ffddfc309bbf
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 8 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 3 |
3 files changed, 7 insertions, 8 deletions
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 4e97c611cc73..38065faf968f 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -747,7 +747,7 @@ private: boost::ptr_vector<ContentNode> maContents; SfxItemPool* pItemPool; - Link<> aModifyHdl; + Link<LinkParamNone*,void> aModifyHdl; SvxFont aDefFont; //faster than ever from the pool!! sal_uInt16 nDefTab; @@ -769,7 +769,7 @@ public: bool IsModified() const { return bModified; } void SetModified( bool b ); - void SetModifyHdl( const Link<>& rLink ) { aModifyHdl = rLink; } + void SetModifyHdl( const Link<LinkParamNone*,void>& rLink ) { aModifyHdl = rLink; } void CreateDefFont( bool bUseStyles ); const SvxFont& GetDefFont() { return aDefFont; } diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 87556e5947fd..91d5b499c7c3 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -657,10 +657,10 @@ private: inline VirtualDevice* GetVirtualDevice( const MapMode& rMapMode, DrawModeFlags nDrawMode ); inline void EraseVirtualDevice() { pVirtDev.disposeAndClear(); } - DECL_LINK_TYPED(StatusTimerHdl, Timer *, void); - DECL_LINK_TYPED(IdleFormatHdl, Idle *, void); - DECL_LINK_TYPED(OnlineSpellHdl, Timer *, void); - DECL_LINK( DocModified, void* ); + DECL_LINK_TYPED( StatusTimerHdl, Timer *, void); + DECL_LINK_TYPED( IdleFormatHdl, Idle *, void); + DECL_LINK_TYPED( OnlineSpellHdl, Timer *, void); + DECL_LINK_TYPED( DocModified, LinkParamNone*, void ); void CheckIdleFormatter(); diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 90e131bf0170..87507f61f0ca 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -4370,10 +4370,9 @@ void ImpEditEngine::LeaveBlockNotifications() } } -IMPL_LINK_NOARG(ImpEditEngine, DocModified) +IMPL_LINK_NOARG_TYPED(ImpEditEngine, DocModified, LinkParamNone*, void) { aModifyHdl.Call( NULL /*GetEditEnginePtr()*/ ); // NULL, because also used for Outliner - return 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |