diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-24 17:48:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-25 08:27:53 +0200 |
commit | a83043d2c8f3ece0af32b964161191c377a3904f (patch) | |
tree | 3bbe10f04e1a0cc63478d9ab87531ddac293a5db /cui | |
parent | 760980b0b510acac555f0c252fbaa10a4751bded (diff) |
loplugin:unusedfields
Change-Id: I7d8cd41c6b4b97a6d33764a8580f08413e584a69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97046
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/passwdomdlg.cxx | 10 | ||||
-rw-r--r-- | cui/source/inc/passwdomdlg.hxx | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/cui/source/dialogs/passwdomdlg.cxx b/cui/source/dialogs/passwdomdlg.cxx index 250f9e728253..9c06e961498e 100644 --- a/cui/source/dialogs/passwdomdlg.cxx +++ b/cui/source/dialogs/passwdomdlg.cxx @@ -104,7 +104,6 @@ PasswordToOpenModifyDialog::PasswordToOpenModifyDialog(weld::Window * pParent, s , m_aTwoMismatch( CuiResId( RID_SVXSTR_TWO_PASSWORDS_MISMATCH ) ) , m_aInvalidStateForOkButton( CuiResId( RID_SVXSTR_INVALID_STATE_FOR_OK_BUTTON ) ) , m_aInvalidStateForOkButton_v2( CuiResId( RID_SVXSTR_INVALID_STATE_FOR_OK_BUTTON_V2 ) ) - , m_aIndicatorTemplate(CuiResId(RID_SVXSTR_PASSWORD_LEN_INDICATOR).replaceFirst("%1", OUString::number(nMaxPasswdLen))) , m_nMaxPasswdLen(nMaxPasswdLen) , m_bIsPasswordToModify( bIsPasswordToModify ) { @@ -112,18 +111,19 @@ PasswordToOpenModifyDialog::PasswordToOpenModifyDialog(weld::Window * pParent, s if (nMaxPasswdLen) { + OUString aIndicatorTemplate(CuiResId(RID_SVXSTR_PASSWORD_LEN_INDICATOR).replaceFirst("%1", OUString::number(nMaxPasswdLen))); m_xPasswdToOpenED->set_max_length( nMaxPasswdLen ); m_xPasswdToOpenED->connect_changed(LINK(this, PasswordToOpenModifyDialog, ChangeHdl)); - m_xPasswdToOpenInd->set_label(m_aIndicatorTemplate); + m_xPasswdToOpenInd->set_label(aIndicatorTemplate); m_xReenterPasswdToOpenED->set_max_length( nMaxPasswdLen ); m_xReenterPasswdToOpenED->connect_changed(LINK(this, PasswordToOpenModifyDialog, ChangeHdl)); - m_xReenterPasswdToOpenInd->set_label(m_aIndicatorTemplate); + m_xReenterPasswdToOpenInd->set_label(aIndicatorTemplate); m_xPasswdToModifyED->set_max_length( nMaxPasswdLen ); m_xPasswdToModifyED->connect_changed(LINK(this, PasswordToOpenModifyDialog, ChangeHdl)); - m_xPasswdToModifyInd->set_label(m_aIndicatorTemplate); + m_xPasswdToModifyInd->set_label(aIndicatorTemplate); m_xReenterPasswdToModifyED->set_max_length( nMaxPasswdLen ); m_xReenterPasswdToModifyED->connect_changed(LINK(this, PasswordToOpenModifyDialog, ChangeHdl)); - m_xReenterPasswdToModifyInd->set_label(m_aIndicatorTemplate); + m_xReenterPasswdToModifyInd->set_label(aIndicatorTemplate); } m_xPasswdToOpenED->grab_focus(); diff --git a/cui/source/inc/passwdomdlg.hxx b/cui/source/inc/passwdomdlg.hxx index 1f690ca391c7..0f25fa27df18 100644 --- a/cui/source/inc/passwdomdlg.hxx +++ b/cui/source/inc/passwdomdlg.hxx @@ -42,7 +42,6 @@ class PasswordToOpenModifyDialog : public SfxDialogController OUString m_aTwoMismatch; OUString m_aInvalidStateForOkButton; OUString m_aInvalidStateForOkButton_v2; - OUString m_aIndicatorTemplate; int m_nMaxPasswdLen; bool m_bIsPasswordToModify; |