summaryrefslogtreecommitdiff
path: root/scripting/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 12:45:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 20:58:36 +0200
commit14c763e793780fec3f4e6280db437e4cda8bbd7c (patch)
tree48ce5fdc506b70ee7856677052759d3c9802d890 /scripting/source
parent6580e171ad054dca38f55822e67a400191cecdf5 (diff)
s/ERRCODE_SBX_OK/ERRCODE_NONE
adds no value Change-Id: Iedf7a6a7be28fed4059b576312890be8cbb980d7 Reviewed-on: https://gerrit.libreoffice.org/39056 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source')
-rw-r--r--scripting/source/basprov/basscript.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx
index 565f54d89be2..41471369e4f4 100644
--- a/scripting/source/basprov/basscript.cxx
+++ b/scripting/source/basprov/basscript.cxx
@@ -217,7 +217,7 @@ namespace basprov
// call method
SbxVariableRef xReturn = new SbxVariable;
- ErrCode nErr = ERRCODE_SBX_OK;
+ ErrCode nErr = ERRCODE_NONE;
// if it's a document-based script, temporarily reset ThisComponent to the script invocation context
Any aOldThisComponent;
@@ -236,7 +236,7 @@ namespace basprov
if ( m_documentBasicManager && m_xDocumentScriptContext.is() )
m_documentBasicManager->SetGlobalUNOConstant( "ThisComponent", aOldThisComponent );
- if ( nErr != ERRCODE_SBX_OK )
+ if ( nErr != ERRCODE_NONE )
{
// TODO: throw InvocationTargetException ?
}