diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.hxx | 4 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.hxx b/scripting/source/provider/MasterScriptProvider.hxx index 5309955c9bdc..fc0a6b3ad0aa 100644 --- a/scripting/source/provider/MasterScriptProvider.hxx +++ b/scripting/source/provider/MasterScriptProvider.hxx @@ -107,9 +107,9 @@ public: getAllProviders() throw ( css::uno::RuntimeException ); bool isPkgProvider() { return m_bIsPkgMSP; } - css::uno::Reference< css::script::provider::XScriptProvider > getPkgProvider() { return m_xMSPPkg; } + const css::uno::Reference< css::script::provider::XScriptProvider >& getPkgProvider() { return m_xMSPPkg; } // returns context string for this provider, eg - OUString getContextString() { return m_sCtxString; } + const OUString& getContextString() { return m_sCtxString; } private: static OUString parseLocationName( const OUString& location ); diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index e4a86f38cbee..cd04d67d4b57 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1217,7 +1217,7 @@ class BinaryOutput public: explicit BinaryOutput( Reference< XComponentContext > xContext ); - Reference< io::XOutputStream > getOutputStream() const + const Reference< io::XOutputStream >& getOutputStream() const { return m_xOutputStream; } Sequence< ::sal_Int8 > closeAndGetData(); |