diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-30 15:37:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-31 06:28:41 +0000 |
commit | 3d7325898547c94826cfddc6852d400e84e2dda1 (patch) | |
tree | 894e0f527f0dc42f478b10d34cf95c94e6d74e83 /sw | |
parent | fafb2cf4de2eb2de46afab0738b7fd95663c0164 (diff) |
loplugin:unusedmethods
Change-Id: Ifeb818227a960cab8fd2e8e7352468efbfe1232c
Reviewed-on: https://gerrit.libreoffice.org/25668
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index ad55f89b1265..9fb52ac1cb44 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -47,7 +47,6 @@ #include <editeng/langitem.hxx> #include <svx/viewlayoutitem.hxx> #include <svx/zoomslideritem.hxx> -#include <svtools/xwindowitem.hxx> #include <svx/linkwarn.hxx> #include <sfx2/htmlmode.hxx> #include <vcl/svapp.hxx> @@ -579,12 +578,7 @@ void SwView::Execute(SfxRequest &rReq) { OSL_ENSURE( !static_cast<const SfxBoolItem*>(pItem)->GetValue(), "SwView::Execute(): password set an redlining off doesn't match!" ); // xmlsec05: new password dialog - vcl::Window* pParent; - const SfxPoolItem* pParentItem; - if( SfxItemState::SET == pArgs->GetItemState( SID_ATTR_XWINDOW, false, &pParentItem ) ) - pParent = static_cast<const XWindowItem*>( pParentItem )->GetWindowPtr(); - else - pParent = &GetViewFrame()->GetWindow(); + vcl::Window* pParent = &GetViewFrame()->GetWindow(); ScopedVclPtrInstance< SfxPasswordDialog > aPasswdDlg( pParent ); aPasswdDlg->SetMinLen( 1 ); //#i69751# the result of Execute() can be ignored @@ -617,12 +611,7 @@ void SwView::Execute(SfxRequest &rReq) // xmlsec05: new password dialog // message box for wrong password - vcl::Window* pParent; - const SfxPoolItem* pParentItem; - if( pArgs && SfxItemState::SET == pArgs->GetItemState( SID_ATTR_XWINDOW, false, &pParentItem ) ) - pParent = static_cast<const XWindowItem*>( pParentItem )->GetWindowPtr(); - else - pParent = &GetViewFrame()->GetWindow(); + vcl::Window* pParent = &GetViewFrame()->GetWindow(); ScopedVclPtrInstance< SfxPasswordDialog > aPasswdDlg( pParent ); aPasswdDlg->SetMinLen( 1 ); if(!aPasswd.getLength()) |