From 49cb475862e12d3470ec88db518f6e84e7164d73 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 16 Aug 2024 08:44:52 +0200 Subject: 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 --- ucb/source/ucp/file/filinsreq.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ucb/source/ucp/file/filinsreq.cxx') 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> continuations{ Reference(p1), Reference(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"; -- cgit