diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-17 08:47:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-17 09:12:42 +0100 |
commit | fbad0809aee60df4a3cae8f6f2a11f2bd6446b87 (patch) | |
tree | 4c52317d3cf4557922657a60cdfd8ef315495f1c /cui | |
parent | dba40f311bc512c05ea59fbdfeb794ef44af72a6 (diff) |
loplugin:referencecasting in cui
Change-Id: Id73971bdd986101eeb53bf0b140ef6a7c72191a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111025
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optjava.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optpath.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index aa2ccd0767c1..186a63096d65 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -825,7 +825,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickSearchHdl, weld::Button&, void) css::uno::Reference< XAsynchronousExecutableDialog > xAsyncDlg( xFolderPicker, UNO_QUERY ); if ( xAsyncDlg.is() ) - xAsyncDlg->startExecuteModal( xDialogListener.get() ); + xAsyncDlg->startExecuteModal( xDialogListener ); else { if( xFolderPicker->execute() == RET_OK ) diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index e6af34320fe7..81bb4e30450a 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -161,7 +161,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, AddHdl_Impl, weld::Button&, void) Reference< XAsynchronousExecutableDialog > xAsyncDlg( xFolderPicker, UNO_QUERY ); if ( xAsyncDlg.is() ) - xAsyncDlg->startExecuteModal( xDialogListener.get() ); + xAsyncDlg->startExecuteModal( xDialogListener ); else if ( xFolderPicker.is() && xFolderPicker->execute() == ExecutableDialogResults::OK ) AddFolder( xFolderPicker->getDirectory() ); } @@ -261,7 +261,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, StartFolderPickerHdl, void*, void) { Reference< XAsynchronousExecutableDialog > xAsyncDlg( xFolderPicker, UNO_QUERY ); if ( xAsyncDlg.is() ) - xAsyncDlg->startExecuteModal( xDialogListener.get() ); + xAsyncDlg->startExecuteModal( xDialogListener ); else if ( xFolderPicker.is() && xFolderPicker->execute() == ExecutableDialogResults::OK ) AddFolder( xFolderPicker->getDirectory() ); } diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index 77432e0b7764..e1f638faa673 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -547,7 +547,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl, weld::Button&, void) Reference< XAsynchronousExecutableDialog > xAsyncDlg( xFolderPicker, UNO_QUERY ); if ( xAsyncDlg.is() ) - xAsyncDlg->startExecuteModal( xDialogListener.get() ); + xAsyncDlg->startExecuteModal( xDialogListener ); else { short nRet = xFolderPicker->execute(); |