summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-17 16:47:56 +0200
committerNoel Grandin <noel@peralex.com>2015-09-18 08:46:11 +0200
commit8578168b6aa6ccd3d0fad494300766fce4b26dbc (patch)
tree03d6505adfaa076722cdac9e54e862d2945e5595 /sw/source
parentf8fa762026f0767b98284d8af08ab6e9814c9f0a (diff)
convert Link<> to typed
Change-Id: I2e49e9b18db6ee6ce0dcaea0a83e862384d5beaa
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
-rw-r--r--sw/source/uibase/uiview/view.cxx4
2 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 21e2c6a6d59d..21aa11fdbb70 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -1693,8 +1693,8 @@ bool SwTransferable::_PasteFileContent( TransferableDataHelper& rData,
if( pStream && pRead )
{
- Link<> aOldLink( rSh.GetChgLnk() );
- rSh.SetChgLnk( Link<>() );
+ Link<SwCrsrShell*,void> aOldLink( rSh.GetChgLnk() );
+ rSh.SetChgLnk( Link<SwCrsrShell*,void>() );
const SwPosition& rInsPos = *rSh.GetCrsr()->Start();
SwReader aReader( *pStream, aEmptyOUStr, OUString(), *rSh.GetCrsr() );
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 812f188000f5..717212f525bf 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -464,7 +464,7 @@ extern "C"
}
}
-IMPL_LINK_NOARG(SwView, AttrChangedNotify)
+IMPL_LINK_NOARG_TYPED(SwView, AttrChangedNotify, SwCrsrShell*, void)
{
if ( GetEditWin().IsChainMode() )
GetEditWin().SetChainMode( false );
@@ -508,8 +508,6 @@ IMPL_LINK_NOARG(SwView, AttrChangedNotify)
// actual cursor position is a post-it field
m_pPostItMgr->SetShadowState( m_pWrtShell->GetPostItFieldAtCursor() );
}
-
- return 0;
}
IMPL_LINK_NOARG_TYPED(SwView, TimeoutHdl, Timer *, void)