diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-18 09:22:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-27 06:48:25 +0000 |
commit | 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch) | |
tree | d1c8626818cbf26a699875ae2d82f751a1657e92 /sw/source | |
parent | 9f4af777a832d8a0b9a21d793d421fa6228131e0 (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 'sw/source')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/doc/doc.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docnew.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/inc/txmsrt.hxx | 4 | ||||
-rw-r--r-- | sw/source/core/ole/ndole.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaglobals.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaglobals.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/app/swmodule.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/fldui/fldmgr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/fldmgr.hxx | 2 |
11 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index d497cfeff90a..6a5ac3040f9d 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -1126,7 +1126,7 @@ uno::Sequence< OUString > SAL_CALL SwAccessibleParagraph::getSupportedServiceNam return aRet; } -uno::Sequence< OUString > getAttributeNames() +uno::Sequence< OUString > const & getAttributeNames() { static uno::Sequence< OUString >* pNames = nullptr; @@ -1159,7 +1159,7 @@ uno::Sequence< OUString > getAttributeNames() return *pNames; } -uno::Sequence< OUString > getSupplementalAttributeNames() +uno::Sequence< OUString > const & getSupplementalAttributeNames() { static uno::Sequence< OUString >* pNames = nullptr; diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index d4b951adc1a8..63075b8a771d 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1744,7 +1744,7 @@ void SwDoc::ChkCondColls() } } -uno::Reference< script::vba::XVBAEventProcessor > +uno::Reference< script::vba::XVBAEventProcessor > const & SwDoc::GetVbaEventProcessor() { #if HAVE_FEATURE_SCRIPTING diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx index 80c148ba2539..0ada4b63e6f5 100644 --- a/sw/source/core/doc/docnew.cxx +++ b/sw/source/core/doc/docnew.cxx @@ -136,7 +136,7 @@ const sal_Char sGrfCollStr[] = "Graphikformatvorlage"; /* * global functions... */ - uno::Reference< linguistic2::XProofreadingIterator > SwDoc::GetGCIterator() const + uno::Reference< linguistic2::XProofreadingIterator > const & SwDoc::GetGCIterator() const { if (!m_xGCIterator.is() && SvtLinguConfig().HasGrammarChecker()) { diff --git a/sw/source/core/inc/txmsrt.hxx b/sw/source/core/inc/txmsrt.hxx index 10e4d36405e9..210702d2ace9 100644 --- a/sw/source/core/inc/txmsrt.hxx +++ b/sw/source/core/inc/txmsrt.hxx @@ -145,7 +145,7 @@ struct SwTOXSortTabBase virtual OUString GetURL() const; - inline TextAndReading GetText() const; + inline TextAndReading const & GetText() const; inline const css::lang::Locale& GetLocale() const; private: @@ -155,7 +155,7 @@ private: virtual TextAndReading GetText_Impl() const = 0; }; -inline TextAndReading SwTOXSortTabBase::GetText() const +inline TextAndReading const & SwTOXSortTabBase::GetText() const { if( !bValidText ) { diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx index 416089205b48..46197375c712 100644 --- a/sw/source/core/ole/ndole.cxx +++ b/sw/source/core/ole/ndole.cxx @@ -1022,7 +1022,7 @@ OUString SwOLEObj::GetDescription() return SW_RESSTR(STR_OLE); } -drawinglayer::primitive2d::Primitive2DContainer SwOLEObj::tryToGetChartContentAsPrimitive2DSequence( +drawinglayer::primitive2d::Primitive2DContainer const & SwOLEObj::tryToGetChartContentAsPrimitive2DSequence( basegfx::B2DRange& rRange, bool bSynchron) { diff --git a/sw/source/ui/vba/vbaglobals.cxx b/sw/source/ui/vba/vbaglobals.cxx index c7d719e69adc..82d8fbaa286d 100644 --- a/sw/source/ui/vba/vbaglobals.cxx +++ b/sw/source/ui/vba/vbaglobals.cxx @@ -52,7 +52,7 @@ SwVbaGlobals::~SwVbaGlobals() // XGlobals -uno::Reference<word::XApplication > +uno::Reference<word::XApplication > const & SwVbaGlobals::getApplication() throw (uno::RuntimeException) { OSL_TRACE("In SwVbaGlobals::getApplication"); diff --git a/sw/source/ui/vba/vbaglobals.hxx b/sw/source/ui/vba/vbaglobals.hxx index 47a029e6c4b3..e473f83956f0 100644 --- a/sw/source/ui/vba/vbaglobals.hxx +++ b/sw/source/ui/vba/vbaglobals.hxx @@ -38,7 +38,7 @@ class SwVbaGlobals : public SwVbaGlobals_BASE private: css::uno::Reference< ooo::vba::word::XApplication > mxApplication; - css::uno::Reference< ooo::vba::word::XApplication > getApplication() throw (css::uno::RuntimeException); + css::uno::Reference< ooo::vba::word::XApplication > const & getApplication() throw (css::uno::RuntimeException); public: diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx index f436e09070e3..e637b960dba0 100644 --- a/sw/source/uibase/app/swmodule.cxx +++ b/sw/source/uibase/app/swmodule.cxx @@ -192,7 +192,7 @@ SwModule::SwModule( SfxObjectFactory* pWebFact, GetColorConfig(); } } -uno::Reference< scanner::XScannerManager2 > +uno::Reference< scanner::XScannerManager2 > const & SwModule::GetScannerManager() { if (!m_xScannerManager.is()) @@ -202,7 +202,7 @@ SwModule::GetScannerManager() return m_xScannerManager; } -uno::Reference< linguistic2::XLanguageGuessing > SwModule::GetLanguageGuesser() +uno::Reference< linguistic2::XLanguageGuessing > const & SwModule::GetLanguageGuesser() { if (!m_xLanguageGuesser.is()) { diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 5721cd33971e..197cc08e5a76 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -2322,7 +2322,7 @@ bool SwDBManager::OpenDataSource(const OUString& rDataSource, const OUString& rT return pFound->xResultSet.is(); } -uno::Reference< sdbc::XConnection> SwDBManager::RegisterConnection(OUString const& rDataSource) +uno::Reference< sdbc::XConnection> const & SwDBManager::RegisterConnection(OUString const& rDataSource) { SwDSParam* pFound = SwDBManager::FindDSConnection(rDataSource, true); uno::Reference< sdbc::XDataSource> xSource; diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index 9f02086a8aa4..29677576858d 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -1679,7 +1679,7 @@ sal_uLong SwFieldMgr::GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumbe return pFormatter->GetStandardFormat(nDefFormat, GetCurrLanguage()); } -Reference<XNumberingTypeInfo> SwFieldMgr::GetNumberingInfo() const +Reference<XNumberingTypeInfo> const & SwFieldMgr::GetNumberingInfo() const { if(!xNumberingInfo.is()) { diff --git a/sw/source/uibase/inc/fldmgr.hxx b/sw/source/uibase/inc/fldmgr.hxx index 526f5254b0ed..e65f163d0957 100644 --- a/sw/source/uibase/inc/fldmgr.hxx +++ b/sw/source/uibase/inc/fldmgr.hxx @@ -110,7 +110,7 @@ private: SAL_DLLPRIVATE sal_uInt16 GetCurrLanguage() const; css::uno::Reference<css::text::XNumberingTypeInfo> xNumberingInfo; - SAL_DLLPRIVATE css::uno::Reference<css::text::XNumberingTypeInfo> GetNumberingInfo()const; + SAL_DLLPRIVATE css::uno::Reference<css::text::XNumberingTypeInfo> const & GetNumberingInfo()const; public: explicit SwFieldMgr(SwWrtShell* pSh = nullptr); |