summaryrefslogtreecommitdiff
path: root/sfx2/source/notify/hintpost.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-14 23:01:13 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-14 23:06:40 +0200
commitdac1be92f22197c9e144ef36963547c46d12e77d (patch)
tree1967bd643d2897e9bd8740c0495db7fbef77ab70 /sfx2/source/notify/hintpost.cxx
parent8fdf12f79ebcbb44bf58eaabdf7fe6c35ca87bf1 (diff)
sfx2: remove pointless GenLink class
Change-Id: I82df7b89c598c3c7903dee865f899862902a0d86
Diffstat (limited to 'sfx2/source/notify/hintpost.cxx')
-rw-r--r--sfx2/source/notify/hintpost.cxx22
1 files changed, 6 insertions, 16 deletions
diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx
index 2e868834e0d1..00e4290d87c6 100644
--- a/sfx2/source/notify/hintpost.cxx
+++ b/sfx2/source/notify/hintpost.cxx
@@ -17,36 +17,28 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sfx2/hintpost.hxx>
#include "arrdecl.hxx"
-#include <sfx2/hintpost.hxx>
#include <sfx2/app.hxx>
#include "sfxtypes.hxx"
-
-SfxHintPoster::SfxHintPoster( const GenLink& rLink ):
- aLink(rLink)
+SfxHintPoster::SfxHintPoster(const Link<>& rLink)
+ : m_Link(rLink)
{
}
-
-
-
SfxHintPoster::~SfxHintPoster()
{
}
-
-
void SfxHintPoster::Post( SfxHint* pHintToPost )
{
Application::PostUserEvent( ( LINK(this, SfxHintPoster, DoEvent_Impl) ), pHintToPost );
AddFirstRef();
}
-
-
IMPL_LINK( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint )
{
Event( pPostedHint );
@@ -56,14 +48,12 @@ IMPL_LINK( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint )
void SfxHintPoster::Event( SfxHint* pPostedHint )
{
- aLink.Call( pPostedHint );
+ m_Link.Call( pPostedHint );
}
-
-
-void SfxHintPoster::SetEventHdl( const GenLink& rLink )
+void SfxHintPoster::SetEventHdl(const Link<>& rLink)
{
- aLink = rLink;
+ m_Link = rLink;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */