summaryrefslogtreecommitdiff
path: root/uui/source/passworddlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-06 14:40:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-09 11:33:43 +0100
commitabe39f7781f59b96c5a8d3dd5b41c60fdf04ad84 (patch)
tree0f72d1968e5f25e3f280688a414398e3f4a7cce8 /uui/source/passworddlg.cxx
parentbdb1c72198f60fdd91460e26282134d43bc0e2df (diff)
improve loplugin:unusedfields
noticed something that wasn't being picked up, wrote some tests, and found an unhandled case in Plugin::getParentFunctionDecl Change-Id: I52b4ea273be6614e197392dfc4d6053bbc1704de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90141 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui/source/passworddlg.cxx')
-rw-r--r--uui/source/passworddlg.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx
index 7fa17d356cbf..3e8d1550f6cd 100644
--- a/uui/source/passworddlg.cxx
+++ b/uui/source/passworddlg.cxx
@@ -29,7 +29,7 @@
using namespace ::com::sun::star;
PasswordDialog::PasswordDialog(weld::Window* pParent,
- task::PasswordRequestMode nDialogMode, const std::locale& rLocale,
+ task::PasswordRequestMode nDialogMode, const std::locale& rResLocale,
const OUString& aDocURL, bool bOpenToModify, bool bIsSimplePasswordRequest)
: GenericDialogController(pParent, "uui/ui/password.ui", "PasswordDialog")
, m_xFTPassword(m_xBuilder->weld_label("newpassFT"))
@@ -38,8 +38,7 @@ PasswordDialog::PasswordDialog(weld::Window* pParent,
, m_xEDConfirmPassword(m_xBuilder->weld_entry("confirmpassEntry"))
, m_xOKBtn(m_xBuilder->weld_button("ok"))
, nMinLen(1)
- , aPasswdMismatch(Translate::get(STR_PASSWORD_MISMATCH, rLocale))
- , rResLocale(rLocale)
+ , aPasswdMismatch(Translate::get(STR_PASSWORD_MISMATCH, rResLocale))
{
// tdf#115964 we can be launched before the parent has resized to its final size
m_xDialog->set_centered_on_parent(true);