From a6aa57ff591fdf3d834a7e0b1e9e2ebad1d87c5c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 13:34:55 +0200 Subject: use ERRCODE_NONE instead of 0 peeling off a small chunk of my ErrCode strong_int conversion Change-Id: Idc89e8496083beed7608cba705cd981139eb7111 Reviewed-on: https://gerrit.libreoffice.org/38777 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/sbintern.cxx | 2 +- basic/source/classes/sbxmod.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basic/source/classes') diff --git a/basic/source/classes/sbintern.cxx b/basic/source/classes/sbintern.cxx index 20cbf6f9db6a..371f1daad2b6 100644 --- a/basic/source/classes/sbintern.cxx +++ b/basic/source/classes/sbintern.cxx @@ -46,7 +46,7 @@ SbiGlobals::SbiGlobals() pMod = nullptr; pCompMod = nullptr; // JSM nInst = 0; - nCode = 0; + nCode = ERRCODE_NONE; nLine = 0; nCol1 = nCol2 = 0; bCompilerError = false; diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 25b45ca3b36f..d77e7dd0f881 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -1064,7 +1064,7 @@ void SbModule::Run( SbMethod* pMeth ) // Launcher problem // i80726 The Find below will generate an error in Testtool so we reset it unless there was one before already - bool bWasError = SbxBase::GetError() != 0; + bool bWasError = SbxBase::GetError() != ERRCODE_NONE; SbxVariable* pMSOMacroRuntimeLibVar = Find( "Launcher", SbxClassType::Object ); if ( !bWasError && (SbxBase::GetError() == ERRCODE_SBX_PROC_UNDEFINED) ) SbxBase::ResetError(); -- cgit