summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-19 16:55:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-19 16:55:06 +0200
commit8f30da6386fa414b9fe4c704b294a978df77347b (patch)
tree980e4018acff7a24a6399e33d7e1897fa6c9308c /scripting
parent9e310a4705ce956551059040696166aefb2388cb (diff)
Some clang-tidy misc-move-constructor-init
...by turning the relevant ctor parameters into "const &". Change-Id: Ia8d0aba5da10ad6b25f8689e2281e45b3d71c1fc
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/basprov/basscript.cxx4
-rw-r--r--scripting/source/basprov/basscript.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx
index 2aef934b62be..42935f05d179 100644
--- a/scripting/source/basprov/basscript.cxx
+++ b/scripting/source/basprov/basscript.cxx
@@ -56,7 +56,7 @@ namespace basprov
// BasicScriptImpl
- BasicScriptImpl::BasicScriptImpl( const OUString& funcName, SbMethodRef xMethod )
+ BasicScriptImpl::BasicScriptImpl( const OUString& funcName, SbMethodRef const & xMethod )
: ::scripting_helper::OBroadcastHelperHolder( m_aMutex )
,OPropertyContainer( GetBroadcastHelper() )
,m_xMethod( xMethod )
@@ -68,7 +68,7 @@ namespace basprov
}
- BasicScriptImpl::BasicScriptImpl( const OUString& funcName, SbMethodRef xMethod,
+ BasicScriptImpl::BasicScriptImpl( const OUString& funcName, SbMethodRef const & xMethod,
BasicManager& documentBasicManager, const Reference< XScriptInvocationContext >& documentScriptContext ) : ::scripting_helper::OBroadcastHelperHolder( m_aMutex )
,OPropertyContainer( GetBroadcastHelper() )
,m_xMethod( xMethod )
diff --git a/scripting/source/basprov/basscript.hxx b/scripting/source/basprov/basscript.hxx
index 0f8616bd4034..0e5d84e676f3 100644
--- a/scripting/source/basprov/basscript.hxx
+++ b/scripting/source/basprov/basscript.hxx
@@ -69,11 +69,11 @@ namespace basprov
public:
BasicScriptImpl(
const OUString& funcName,
- SbMethodRef xMethod
+ SbMethodRef const & xMethod
);
BasicScriptImpl(
const OUString& funcName,
- SbMethodRef xMethod,
+ SbMethodRef const & xMethod,
BasicManager& documentBasicManager,
const css::uno::Reference< css::document::XScriptInvocationContext >& documentScriptContext
);