summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2022-01-31 20:02:50 +0100
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2022-02-03 09:43:37 +0100
commit6a0f00d3b9d1a74637c92ec6eff1ba5fedc82f3d (patch)
tree16b4cdcba938800bdfbd41582600cbfca3b98855 /scripting
parent65b09ef1c5e24651579eb11900cf2ddbbb7b0971 (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>
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 );