diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-16 08:44:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-16 11:59:18 +0200 |
commit | 49cb475862e12d3470ec88db518f6e84e7164d73 (patch) | |
tree | 78e0b502aeb0c3ae5c35f60eff6484ac03a48712 /ucb/source/ucp/file/filinsreq.cxx | |
parent | ab873780fd855940fe064f387ad1265da29d7169 (diff) |
convert TASKHANDLING constants to scoped enum
Change-Id: I693765375fd372ed81a1efdc85c7821afb5ee666
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171945
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/file/filinsreq.cxx')
-rw-r--r-- | ucb/source/ucp/file/filinsreq.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/filinsreq.cxx b/ucb/source/ucp/file/filinsreq.cxx index 62187c2c696c..c0af35edb013 100644 --- a/ucb/source/ucp/file/filinsreq.cxx +++ b/ucb/source/ucp/file/filinsreq.cxx @@ -45,20 +45,21 @@ XInteractionRequestImpl::XInteractionRequestImpl( p2( new XInteractionAbortImpl ), m_xOrigin(xOrigin) { - sal_Int32 nErrorCode(0), nMinorError(0); + TaskHandlerErr nErrorCode(TaskHandlerErr::NO_ERROR); + sal_Int32 nMinorError(0); if( pShell ) pShell->retrieveError(CommandId,nErrorCode,nMinorError); std::vector<uno::Reference<task::XInteractionContinuation>> continuations{ Reference<XInteractionContinuation>(p1), Reference<XInteractionContinuation>(p2) }; Any aAny; - if(nErrorCode == TASKHANDLING_FOLDER_EXISTS_MKDIR) + if(nErrorCode == TaskHandlerErr::FOLDER_EXISTS_MKDIR) { NameClashException excep(u"folder exists and overwrite forbidden"_ustr, m_xOrigin, InteractionClassification_ERROR, aClashingName); aAny <<= excep; } - else if(nErrorCode == TASKHANDLING_INVALID_NAME_MKDIR) + else if(nErrorCode == TaskHandlerErr::INVALID_NAME_MKDIR) { PropertyValue prop; prop.Name = "ResourceName"; |