summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-27 15:08:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-28 11:21:17 +0000
commit48a8d6d8434908690bc2a51d27f1051bd550c9b0 (patch)
tree066f8fc9753bdba62f87f205baface6e729857bf /uui
parentf7d6f3e4e3fda3cd4936880918e2831246634a3e (diff)
loplugin:singlevalfields in various
Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e Reviewed-on: https://gerrit.libreoffice.org/26738 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'uui')
-rw-r--r--uui/source/masterpasscrtdlg.cxx3
-rw-r--r--uui/source/masterpasscrtdlg.hxx1
2 files changed, 1 insertions, 3 deletions
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