diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-03 23:23:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-04 06:55:38 +0200 |
commit | 5fc8f8620d0367813d20b9a90ece47f0674996b3 (patch) | |
tree | 2ba02f73f506ac5e23a5f588a483bcca97b0d7c0 /scripting/source/basprov | |
parent | aebfe0e9432e37936bbdd040fe8a0f099a0d22a5 (diff) |
Just use Any ctor instead of makeAny in scripting
Change-Id: I611640a6fb7061fbb6a239034f75e006db075989
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133786
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'scripting/source/basprov')
-rw-r--r-- | scripting/source/basprov/basscript.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx index 9054ee4bfc27..d64fa5af4357 100644 --- a/scripting/source/basprov/basscript.cxx +++ b/scripting/source/basprov/basscript.cxx @@ -242,7 +242,7 @@ constexpr OUStringLiteral BASSCRIPT_PROPERTY_CALLER = u"Caller"; // if it's a document-based script, temporarily reset ThisComponent to the script invocation context Any aOldThisComponent; if ( m_documentBasicManager && m_xDocumentScriptContext.is() ) - aOldThisComponent = m_documentBasicManager->SetGlobalUNOConstant( "ThisComponent", makeAny( m_xDocumentScriptContext ) ); + aOldThisComponent = m_documentBasicManager->SetGlobalUNOConstant( "ThisComponent", Any( m_xDocumentScriptContext ) ); if ( m_caller.hasElements() && m_caller[ 0 ].hasValue() ) { |