From 01075a7274bd3921501d382a71720581a48bfd66 Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel@peralex.com>
Date: Mon, 27 Jul 2015 11:37:01 +0200
Subject: inline the "old" SbxErr constants

Change-Id: I1c54c792e0397d61c97d5067963b343f912275fc
---
 scripting/source/basprov/basscript.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'scripting')

diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx
index 4691b558d996..3e5186fa8d9e 100644
--- a/scripting/source/basprov/basscript.cxx
+++ b/scripting/source/basprov/basscript.cxx
@@ -224,7 +224,7 @@ namespace basprov
 
             // call method
             SbxVariableRef xReturn = new SbxVariable;
-            ErrCode nErr = SbxERR_OK;
+            ErrCode nErr = ERRCODE_SBX_OK;
 
             // if it's a document-based script, temporarily reset ThisComponent to the script invocation context
             Any aOldThisComponent;
@@ -243,7 +243,7 @@ namespace basprov
             if ( m_documentBasicManager && m_xDocumentScriptContext.is() )
                 m_documentBasicManager->SetGlobalUNOConstant( "ThisComponent", aOldThisComponent );
 
-            if ( nErr != SbxERR_OK )
+            if ( nErr != ERRCODE_SBX_OK )
             {
                 // TODO: throw InvocationTargetException ?
             }
-- 
cgit