summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2022-01-31 20:02:50 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-02-03 12:22:02 +0100
commitb8387f64cc722ef501be32e6cb30397aae8af83e (patch)
tree7ea523655079d54e93b195d9e7bfe3ff6cc8553b /scripting
parent0efe676d8e36b1f47bdf192b458cb23b521c5eda (diff)
tdf#146742 - Move the initialization code of a method to SbMethod::Call
Change-Id: I516bacdcd22ed094a0e9b6e125e941f32fe88c82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129238 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> (cherry picked from commit 6a0f00d3b9d1a74637c92ec6eff1ba5fedc82f3d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129341 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/basprov/basscript.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx
index 2cc67d4feb05..9054ee4bfc27 100644
--- a/scripting/source/basprov/basscript.cxx
+++ b/scripting/source/basprov/basscript.cxx
@@ -244,11 +244,6 @@ constexpr OUStringLiteral BASSCRIPT_PROPERTY_CALLER = u"Caller";
if ( m_documentBasicManager && m_xDocumentScriptContext.is() )
aOldThisComponent = m_documentBasicManager->SetGlobalUNOConstant( "ThisComponent", makeAny( m_xDocumentScriptContext ) );
- // tdf#143582 - clear return value of the method before calling it
- const SbxFlagBits nSavFlags = m_xMethod->GetFlags();
- m_xMethod->SetFlag(SbxFlagBits::ReadWrite | SbxFlagBits::NoBroadcast);
- m_xMethod->Clear();
- m_xMethod->SetFlags(nSavFlags);
if ( m_caller.hasElements() && m_caller[ 0 ].hasValue() )
{
SbxVariableRef xCallerVar = new SbxVariable( SbxVARIANT );