summaryrefslogtreecommitdiff
path: root/uui/source/loginerr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-08 11:12:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 05:47:36 +0000
commitbcad173faaffd3a3c1e6737d94d2108cf590338d (patch)
tree8370b2186548de7302eb9109ce6ac520ecf17c3b /uui/source/loginerr.hxx
parentafc755fa61cfd9645c4ed2507bdc3a06b721ed5c (diff)
Reapply "create ErrorHandlerFlags scoped enum for error handling flags""
This effectively reverts commit 32cae6a2eaa41568888df9c8fc5605debd8d704a. Change-Id: I15bb0a5c4acaeee6d47dd93a71601d9687d701bc Reviewed-on: https://gerrit.libreoffice.org/34028 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui/source/loginerr.hxx')
-rw-r--r--uui/source/loginerr.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/uui/source/loginerr.hxx b/uui/source/loginerr.hxx
index db4ce88d5178..ae0775a3f154 100644
--- a/uui/source/loginerr.hxx
+++ b/uui/source/loginerr.hxx
@@ -43,13 +43,13 @@ private:
OUString m_aPath;
OUString m_aErrorText;
sal_uInt8 m_nFlags;
- sal_uInt16 m_nRet;
+ ErrorHandlerFlags m_nRet;
bool m_bRecommendToOpenReadonly;
public:
LoginErrorInfo()
: m_nFlags(LOGINERROR_FLAG_MODIFY_USER_NAME)
- , m_nRet(ERRCODE_BUTTON_CANCEL)
+ , m_nRet(ErrorHandlerFlags::ButtonsCancel)
, m_bRecommendToOpenReadonly(false)
{
}
@@ -71,8 +71,8 @@ public:
bool GetIsUseSystemCredentials() const
{ return ( m_nFlags & LOGINERROR_FLAG_IS_USE_SYSCREDS ) ==
LOGINERROR_FLAG_IS_USE_SYSCREDS; }
- sal_uInt8 GetFlags() const { return m_nFlags; }
- sal_uInt16 GetResult() const { return m_nRet; }
+ sal_uInt8 GetFlags() const { return m_nFlags; }
+ ErrorHandlerFlags GetResult() const { return m_nRet; }
void SetTitle( const OUString& aTitle )
{ m_aTitle = aTitle; }
@@ -100,7 +100,7 @@ public:
inline void SetModifyAccount( bool bSet );
inline void SetModifyUserName( bool bSet );
- void SetResult( sal_uInt16 nRet )
+ void SetResult( ErrorHandlerFlags nRet )
{ m_nRet = nRet; }
};