From 6bcb9e1c4ea98dd4e154670495c7f0a2a8ffc0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Feb 2019 15:09:39 +0000 Subject: [PATCH] drop unused argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d229a0afb822c9e7b81d3d8f27962c52d27d815 Reviewed-on: https://gerrit.libreoffice.org/68094 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/source/dialogs/hangulhanjadlg.cxx | 2 +- cui/source/factory/dlgfact.cxx | 5 ++--- cui/source/factory/dlgfact.hxx | 3 +-- cui/source/inc/hangulhanjadlg.hxx | 4 +--- editeng/source/misc/hangulhanja.cxx | 2 +- include/editeng/edtdlg.hxx | 3 +-- 6 files changed, 7 insertions(+), 12 deletions(-) diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index 78c0ddf1db3f..9cd2f6d9a7d9 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -550,7 +550,7 @@ namespace svx VCL_BUILDER_FACTORY_ARGS( SuggestionDisplay, WB_ITEMBORDER | WB_FLATVALUESET | WB_VSCROLL ); - HangulHanjaConversionDialog::HangulHanjaConversionDialog( vcl::Window* _pParent, HHC::ConversionDirection ) + HangulHanjaConversionDialog::HangulHanjaConversionDialog(vcl::Window* _pParent) :ModalDialog( _pParent, "HangulHanjaConversionDialog", "cui/ui/hangulhanjaconversiondialog.ui" ) ,m_bDocumentMode( true ) { diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 6a244b16daa5..0d7de241f08d 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -1036,10 +1036,9 @@ VclPtr AbstractDialogFactory_Impl::CreateSvxDistrib return VclPtr::Create(std::make_unique(pParent, rAttr, SvxDistributeHorizontal::NONE, SvxDistributeVertical::NONE)); } -VclPtr AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(vcl::Window* pParent, - editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) +VclPtr AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(vcl::Window* pParent) { - VclPtrInstance pDlg( pParent, _ePrimaryDirection); + VclPtrInstance pDlg(pParent); return VclPtr::Create( pDlg ); } diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 8d48168cf329..b9d598f40009 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -730,8 +730,7 @@ public: virtual VclPtr CreatePasteDialog(weld::Window* pParent) override; virtual VclPtr CreateLinksDialog(weld::Window* pParent, sfx2::LinkManager* pMgr, bool bHTML = false, sfx2::SvBaseLink* p=nullptr) override; - virtual VclPtr CreateHangulHanjaConversionDialog( vcl::Window* _pParent, - editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) override; + virtual VclPtr CreateHangulHanjaConversionDialog( vcl::Window* _pParent ) override; virtual VclPtr CreateThesaurusDialog( vcl::Window*, css::uno::Reference< css::linguistic2::XThesaurus > xThesaurus, const OUString &rWord, LanguageType nLanguage ) override; diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx index 1d861d8c0c42..caaefe1465ca 100644 --- a/cui/source/inc/hangulhanjadlg.hxx +++ b/cui/source/inc/hangulhanjadlg.hxx @@ -136,9 +136,7 @@ namespace svx Link m_aClickByCharacterLink; public: - HangulHanjaConversionDialog( - vcl::Window* _pParent, - editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ); + HangulHanjaConversionDialog(vcl::Window* pParent); virtual ~HangulHanjaConversionDialog() override; virtual void dispose() override; diff --git a/editeng/source/misc/hangulhanja.cxx b/editeng/source/misc/hangulhanja.cxx index c55900b8c340..3dff20212179 100644 --- a/editeng/source/misc/hangulhanja.cxx +++ b/editeng/source/misc/hangulhanja.cxx @@ -282,7 +282,7 @@ namespace editeng if ( m_bIsInteractive && !m_pConversionDialog ) { EditAbstractDialogFactory* pFact = EditAbstractDialogFactory::Create(); - m_pConversionDialog = pFact->CreateHangulHanjaConversionDialog(m_pUIParent, m_ePrimaryConversionDirection ); + m_pConversionDialog = pFact->CreateHangulHanjaConversionDialog(m_pUIParent); m_pConversionDialog->EnableRubySupport( m_pAntiImpl->HasRubySupport() ); diff --git a/include/editeng/edtdlg.hxx b/include/editeng/edtdlg.hxx index caacc97b9ac0..6483f8c2f0a3 100644 --- a/include/editeng/edtdlg.hxx +++ b/include/editeng/edtdlg.hxx @@ -95,8 +95,7 @@ public: const OUString &rWord, LanguageType nLang, css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper* pWrapper) = 0; - virtual VclPtr CreateHangulHanjaConversionDialog( vcl::Window* _pParent, - editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) = 0; + virtual VclPtr CreateHangulHanjaConversionDialog( vcl::Window* _pParent ) = 0; }; #endif