summaryrefslogtreecommitdiff
path: root/comphelper
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 /comphelper
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 'comphelper')
-rw-r--r--comphelper/source/container/container.cxx2
-rw-r--r--comphelper/source/misc/accessibletexthelper.cxx4
-rw-r--r--comphelper/source/property/propertysetinfo.cxx4
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx4
4 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index 44f117b4562b..a383a534c102 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -39,7 +39,7 @@ IndexAccessIterator::IndexAccessIterator(css::uno::Reference< css::uno::XInterfa
IndexAccessIterator::~IndexAccessIterator() {}
-css::uno::Reference< css::uno::XInterface> IndexAccessIterator::Next()
+css::uno::Reference< css::uno::XInterface> const & IndexAccessIterator::Next()
{
bool bCheckingStartingPoint = !m_xCurrentObject.is();
// Is the current node the starting point?
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx
index 3cec05e24a1f..29ca9c6f8e38 100644
--- a/comphelper/source/misc/accessibletexthelper.cxx
+++ b/comphelper/source/misc/accessibletexthelper.cxx
@@ -54,7 +54,7 @@ namespace comphelper
}
- Reference < i18n::XBreakIterator > OCommonAccessibleText::implGetBreakIterator()
+ Reference < i18n::XBreakIterator > const & OCommonAccessibleText::implGetBreakIterator()
{
if ( !m_xBreakIter.is() )
{
@@ -66,7 +66,7 @@ namespace comphelper
}
- Reference < i18n::XCharacterClassification > OCommonAccessibleText::implGetCharacterClassification()
+ Reference < i18n::XCharacterClassification > const & OCommonAccessibleText::implGetCharacterClassification()
{
if ( !m_xCharClass.is() )
{
diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx
index ca73b511eabc..9c1e8097f04e 100644
--- a/comphelper/source/property/propertysetinfo.cxx
+++ b/comphelper/source/property/propertysetinfo.cxx
@@ -40,7 +40,7 @@ public:
void add(PropertyMapEntry const * pMap) throw();
void remove( const OUString& aName ) throw();
- std::vector< Property > getProperties() throw();
+ std::vector< Property > const & getProperties() throw();
const PropertyMap& getPropertyMap() const throw() { return maPropertyMap;}
@@ -83,7 +83,7 @@ void PropertyMapImpl::remove( const OUString& aName ) throw()
maProperties.clear();
}
-std::vector< Property > PropertyMapImpl::getProperties() throw()
+std::vector< Property > const & PropertyMapImpl::getProperties() throw()
{
// maybe we have to generate the properties after
// a change in the property map or at first call
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index c7bfcf8afea7..b50c30ec9daa 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -67,7 +67,7 @@ class OFOPXMLHelper_Impl
public:
- css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > GetParsingResult();
+ css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > const & GetParsingResult();
explicit OFOPXMLHelper_Impl( sal_uInt16 nFormat ); // must not be created directly
virtual ~OFOPXMLHelper_Impl();
@@ -284,7 +284,7 @@ OFOPXMLHelper_Impl::~OFOPXMLHelper_Impl()
}
-uno::Sequence< uno::Sequence< beans::StringPair > > OFOPXMLHelper_Impl::GetParsingResult()
+uno::Sequence< uno::Sequence< beans::StringPair > > const & OFOPXMLHelper_Impl::GetParsingResult()
{
if ( m_aElementsSeq.size() )
throw uno::RuntimeException(); // the parsing has still not finished!