From 48a8d6d8434908690bc2a51d27f1051bd550c9b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 27 Jun 2016 15:08:50 +0200 Subject: loplugin:singlevalfields in various Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e Reviewed-on: https://gerrit.libreoffice.org/26738 Tested-by: Jenkins Reviewed-by: Noel Grandin --- uui/source/masterpasscrtdlg.cxx | 3 +-- uui/source/masterpasscrtdlg.hxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'uui') diff --git a/uui/source/masterpasscrtdlg.cxx b/uui/source/masterpasscrtdlg.cxx index 62b94b9d382b..9d6bf6e562d8 100644 --- a/uui/source/masterpasscrtdlg.cxx +++ b/uui/source/masterpasscrtdlg.cxx @@ -28,7 +28,7 @@ IMPL_LINK_NOARG_TYPED(MasterPasswordCreateDialog, EditHdl_Impl, Edit&, void) { - m_pOKBtn->Enable( m_pEDMasterPasswordCrt->GetText().getLength() >= nMinLen ); + m_pOKBtn->Enable( m_pEDMasterPasswordCrt->GetText().getLength() >= 1 ); } IMPL_LINK_NOARG_TYPED(MasterPasswordCreateDialog, OKHdl_Impl, Button*, void) @@ -50,7 +50,6 @@ IMPL_LINK_NOARG_TYPED(MasterPasswordCreateDialog, OKHdl_Impl, Button*, void) MasterPasswordCreateDialog::MasterPasswordCreateDialog(vcl::Window* pParent, ResMgr* pResMgr) : ModalDialog(pParent, "SetMasterPasswordDialog", "uui/ui/setmasterpassworddlg.ui") , pResourceMgr(pResMgr) - , nMinLen(1) { get(m_pEDMasterPasswordCrt, "password1"); get(m_pEDMasterPasswordRepeat, "password2"); diff --git a/uui/source/masterpasscrtdlg.hxx b/uui/source/masterpasscrtdlg.hxx index 689599557b3b..d0a7c1484563 100644 --- a/uui/source/masterpasscrtdlg.hxx +++ b/uui/source/masterpasscrtdlg.hxx @@ -49,7 +49,6 @@ public: private: ResMgr* pResourceMgr; - sal_uInt16 nMinLen; }; #endif // INCLUDED_UUI_SOURCE_MASTERPASSCRTDLG_HXX -- cgit