summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-20 17:22:00 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-21 07:44:43 +0000
commit382eb1a23c390154619c385414bdbe6f6e461173 (patch)
treedbd1970c3d36903b78ed4c754f5faf14f57755c7 /sw
parent652933e8fe46b24049ad0a6e61811727b1965aea (diff)
remove untyped Link<>
Change-Id: I809f9e10309ceadda0a82c3818277323b34ec61b Reviewed-on: https://gerrit.libreoffice.org/19491 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/tiledrendering/tiledrendering.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx
index 62c9baf77fcb..6db48a1e3880 100644
--- a/sw/qa/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/tiledrendering/tiledrendering.cxx
@@ -107,11 +107,11 @@ public:
ModalDialog::dispose();
}
- DECL_LINK ( RenderHdl, Button * );
- DECL_LINK ( ChooseDocumentHdl, Button * );
+ DECL_LINK_TYPED( RenderHdl, Button *, void );
+ DECL_LINK_TYPED( ChooseDocumentHdl, Button *, void );
};
-IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, )
+IMPL_LINK_NOARG_TYPED( TiledRenderingDialog, RenderHdl, Button *, void)
{
int contextWidth = mpContextWidth->GetValue();
int contextHeight = mpContextHeight->GetValue();
@@ -143,11 +143,9 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, )
// update the dialog size
setOptimalLayoutSize();
}
-
- return 1;
}
-IMPL_LINK ( TiledRenderingDialog, ChooseDocumentHdl, Button *, )
+IMPL_LINK_NOARG_TYPED( TiledRenderingDialog, ChooseDocumentHdl, Button *, void )
{
FileDialogHelper aDlgHelper( TemplateDescription::FILEOPEN_SIMPLE, 0 );
uno::Reference < XFilePicker > xFP = aDlgHelper.GetFilePicker();
@@ -156,7 +154,6 @@ IMPL_LINK ( TiledRenderingDialog, ChooseDocumentHdl, Button *, )
OUString aFileUrl =xFP->getFiles().getConstArray()[0];
mpApp->Open(aFileUrl);
}
- return 1;
}
void TiledRenderingApp::Open(OUString & aFileUrl)