summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-18 09:22:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-27 06:48:25 +0000
commit508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch)
treed1c8626818cbf26a699875ae2d82f751a1657e92 /framework
parent9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff)
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/helper/mischelper.hxx2
-rw-r--r--framework/source/fwe/classes/imagewrapper.cxx2
-rw-r--r--framework/source/fwe/classes/rootactiontriggercontainer.cxx2
-rw-r--r--framework/source/fwi/helper/mischelper.cxx2
-rw-r--r--framework/source/services/substitutepathvars.cxx4
5 files changed, 6 insertions, 6 deletions
diff --git a/framework/inc/helper/mischelper.hxx b/framework/inc/helper/mischelper.hxx
index 84d3dc599795..99998563bde8 100644
--- a/framework/inc/helper/mischelper.hxx
+++ b/framework/inc/helper/mischelper.hxx
@@ -118,7 +118,7 @@ class FWI_DLLPUBLIC LanguageGuessingHelper
public:
LanguageGuessingHelper(const css::uno::Reference< css::uno::XComponentContext >& _xContext) : m_xContext(_xContext){}
- css::uno::Reference< css::linguistic2::XLanguageGuessing > GetGuesser() const;
+ css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetGuesser() const;
};
FWI_DLLPUBLIC void FillLangItems( std::set< OUString > &rLangItems,
diff --git a/framework/source/fwe/classes/imagewrapper.cxx b/framework/source/fwe/classes/imagewrapper.cxx
index 1924eeb1c136..98897e39149a 100644
--- a/framework/source/fwe/classes/imagewrapper.cxx
+++ b/framework/source/fwe/classes/imagewrapper.cxx
@@ -32,7 +32,7 @@ using namespace com::sun::star::uno;
namespace framework
{
-static Sequence< sal_Int8 > impl_getStaticIdentifier()
+static Sequence< sal_Int8 > const & impl_getStaticIdentifier()
{
static const sal_uInt8 pGUID[16] = { 0x46, 0xAD, 0x69, 0xFB, 0xA7, 0xBE, 0x44, 0x83, 0xB2, 0xA7, 0xB3, 0xEC, 0x59, 0x4A, 0xB7, 0x00 };
static css::uno::Sequence< sal_Int8 > seqID(reinterpret_cast<const sal_Int8*>(pGUID), 16);
diff --git a/framework/source/fwe/classes/rootactiontriggercontainer.cxx b/framework/source/fwe/classes/rootactiontriggercontainer.cxx
index f58cdcc5c500..7c4312470c8b 100644
--- a/framework/source/fwe/classes/rootactiontriggercontainer.cxx
+++ b/framework/source/fwe/classes/rootactiontriggercontainer.cxx
@@ -37,7 +37,7 @@ using namespace com::sun::star::beans;
namespace framework
{
-static Sequence< sal_Int8 > impl_getStaticIdentifier()
+static Sequence< sal_Int8 > const & impl_getStaticIdentifier()
{
static const sal_uInt8 pGUID[16] = { 0x17, 0x0F, 0xA2, 0xC9, 0xCA, 0x50, 0x4A, 0xD3, 0xA6, 0x3B, 0x39, 0x99, 0xC5, 0x96, 0x43, 0x27 };
static css::uno::Sequence< sal_Int8 > seqID(reinterpret_cast<const sal_Int8*>(pGUID), 16);
diff --git a/framework/source/fwi/helper/mischelper.cxx b/framework/source/fwi/helper/mischelper.cxx
index 7eb5a403373e..7ce88b29c5fc 100644
--- a/framework/source/fwi/helper/mischelper.cxx
+++ b/framework/source/fwi/helper/mischelper.cxx
@@ -43,7 +43,7 @@ using namespace ::com::sun::star::lang;
namespace framework
{
-uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGuesser() const
+uno::Reference< linguistic2::XLanguageGuessing > const & LanguageGuessingHelper::GetGuesser() const
{
if (!m_xLanguageGuesser.is())
{
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index 0e611e607d6f..b46cb213821f 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -274,7 +274,7 @@ protected:
throw (css::container::NoSuchElementException, css::uno::RuntimeException);
OUString impl_reSubstituteVariables( const OUString& aText )
throw (css::uno::RuntimeException);
- OUString impl_getSubstituteVariableValue( const OUString& variable )
+ OUString const & impl_getSubstituteVariableValue( const OUString& variable )
throw (css::container::NoSuchElementException, css::uno::RuntimeException);
private:
@@ -1147,7 +1147,7 @@ throw ( RuntimeException )
}
// This method support both request schemes "$("<varname>")" or "<varname>".
-OUString SubstitutePathVariables::impl_getSubstituteVariableValue( const OUString& rVariable )
+OUString const & SubstitutePathVariables::impl_getSubstituteVariableValue( const OUString& rVariable )
throw ( NoSuchElementException, RuntimeException )
{
OUString aVariable;