diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-03 14:08:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-04 07:17:23 +0100 |
commit | 21e0d8162a0e683558c4d042ce688fc9a6833809 (patch) | |
tree | 8c93a0158d7669b1e92a43c65b6b4a7a7eeca685 /uui | |
parent | 5de151f0fd7b590ae13560086b46ea84e4d9cf9c (diff) |
loplugin:unusedfields
fix the ReturnStmt check
Change-Id: I95076076bd1313d23798c4615ea12910c86ed9a8
Reviewed-on: https://gerrit.libreoffice.org/47309
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/iahndl-authentication.cxx | 3 | ||||
-rw-r--r-- | uui/source/loginerr.hxx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx index 3ce9a7957c84..b5ec2ed481fd 100644 --- a/uui/source/iahndl-authentication.cxx +++ b/uui/source/iahndl-authentication.cxx @@ -74,8 +74,7 @@ executeLoginDialog( bool bCanUseSysCreds = rInfo.GetCanUseSystemCredentials(); LoginFlags nFlags = LoginFlags::NONE; - if (rInfo.GetPath().isEmpty()) - nFlags |= LoginFlags::NoPath; + nFlags |= LoginFlags::NoPath; if (rInfo.GetErrorText().isEmpty()) nFlags |= LoginFlags::NoErrorText; if (!bAccount) diff --git a/uui/source/loginerr.hxx b/uui/source/loginerr.hxx index 5fe7dbb8cbd4..bdfb7f06c19a 100644 --- a/uui/source/loginerr.hxx +++ b/uui/source/loginerr.hxx @@ -40,7 +40,6 @@ private: OUString m_aUserName; OUString m_aPassword; OUString m_aPasswordToModify; - OUString m_aPath; OUString m_aErrorText; sal_uInt8 m_nFlags; DialogMask m_nRet; @@ -60,7 +59,6 @@ public: const OUString& GetPassword() const { return m_aPassword; } const OUString& GetPasswordToModify() const { return m_aPasswordToModify; } bool IsRecommendToOpenReadonly() const { return m_bRecommendToOpenReadonly; } - const OUString& GetPath() const { return m_aPath; } const OUString& GetErrorText() const { return m_aErrorText; } bool GetCanRememberPassword() const { return ( m_nFlags & LOGINERROR_FLAG_CAN_REMEMBER_PASSWORD ); } bool GetIsRememberPersistent() const { return ( m_nFlags & LOGINERROR_FLAG_REMEMBER_PERSISTENT ); } |