summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-24 13:02:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-25 08:32:27 +0200
commit57c5f980835f834f6ea96c6f5ca841b5372aa61d (patch)
tree7851f29791296a006e936f1f323489b79c11e9b2 /comphelper
parent80a30219c4c553ff22979b73dd97a8869d87e488 (diff)
loplugin:constmethod in comphelper,ucbhelper
Change-Id: I27a860fbbedd2174c60c199af18cae76e02abc25 Reviewed-on: https://gerrit.libreoffice.org/43759 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx8
-rw-r--r--comphelper/source/misc/backupfilehelper.cxx4
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx2
-rw-r--r--comphelper/source/property/propertystatecontainer.cxx2
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx4
5 files changed, 10 insertions, 10 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index 520d37e1f8c4..49d033b54007 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -226,12 +226,12 @@ OUString EmbeddedObjectContainer::CreateUniqueObjectName()
return aStr;
}
-uno::Sequence < OUString > EmbeddedObjectContainer::GetObjectNames()
+uno::Sequence < OUString > EmbeddedObjectContainer::GetObjectNames() const
{
return comphelper::mapKeysToSequence(pImpl->maObjectContainer);
}
-bool EmbeddedObjectContainer::HasEmbeddedObjects()
+bool EmbeddedObjectContainer::HasEmbeddedObjects() const
{
return pImpl->maObjectContainer.size() != 0;
}
@@ -247,7 +247,7 @@ bool EmbeddedObjectContainer::HasEmbeddedObject( const OUString& rName )
return xAccess->hasByName(rName);
}
-bool EmbeddedObjectContainer::HasEmbeddedObject( const uno::Reference < embed::XEmbeddedObject >& xObj )
+bool EmbeddedObjectContainer::HasEmbeddedObject( const uno::Reference < embed::XEmbeddedObject >& xObj ) const
{
for( const auto& rObj : pImpl->maObjectContainer )
{
@@ -266,7 +266,7 @@ bool EmbeddedObjectContainer::HasInstantiatedEmbeddedObject( const OUString& rNa
return ( aIt != pImpl->maObjectContainer.end() );
}
-OUString EmbeddedObjectContainer::GetEmbeddedObjectName( const css::uno::Reference < css::embed::XEmbeddedObject >& xObj )
+OUString EmbeddedObjectContainer::GetEmbeddedObjectName( const css::uno::Reference < css::embed::XEmbeddedObject >& xObj ) const
{
for( const auto& rObj : pImpl->maObjectContainer )
{
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx
index a6a4e5ec9e8e..614789a3bcbc 100644
--- a/comphelper/source/misc/backupfilehelper.cxx
+++ b/comphelper/source/misc/backupfilehelper.cxx
@@ -1653,7 +1653,7 @@ namespace
}
}
- bool empty()
+ bool empty() const
{
return maPackedFileEntryVector.empty();
}
@@ -1940,7 +1940,7 @@ namespace comphelper
return bDidPop;
}
- bool BackupFileHelper::isPopPossibleExtensionInfo()
+ bool BackupFileHelper::isPopPossibleExtensionInfo() const
{
bool bPopPossible(false);
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 0557a3f95b4a..131fa704ec86 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -712,7 +712,7 @@ void SyntaxHighlighter::getHighlightPortions(const OUString& rLine,
m_tokenizer->getHighlightPortions( rLine, portions );
}
-HighlighterLanguage SyntaxHighlighter::GetLanguage()
+HighlighterLanguage SyntaxHighlighter::GetLanguage() const
{
return m_tokenizer->aLanguage;
}
diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx
index d06c3f190443..a2e1245fe57c 100644
--- a/comphelper/source/property/propertystatecontainer.cxx
+++ b/comphelper/source/property/propertystatecontainer.cxx
@@ -149,7 +149,7 @@ namespace comphelper
}
- PropertyState OPropertyStateContainer::getPropertyStateByHandle( sal_Int32 _nHandle )
+ PropertyState OPropertyStateContainer::getPropertyStateByHandle( sal_Int32 _nHandle ) const
{
// simply compare the current and the default value
Any aCurrentValue; getFastPropertyValue( aCurrentValue, _nHandle );
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index 0d4e164a2f66..205b8883c0d3 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -68,7 +68,7 @@ class OFOPXMLHelper_Impl
public:
- css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > const & GetParsingResult();
+ css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > const & GetParsingResult() const;
explicit OFOPXMLHelper_Impl( sal_uInt16 nFormat ); // must not be created directly
@@ -269,7 +269,7 @@ OFOPXMLHelper_Impl::OFOPXMLHelper_Impl( sal_uInt16 nFormat )
{
}
-uno::Sequence< uno::Sequence< beans::StringPair > > const & OFOPXMLHelper_Impl::GetParsingResult()
+uno::Sequence< uno::Sequence< beans::StringPair > > const & OFOPXMLHelper_Impl::GetParsingResult() const
{
if ( m_aElementsSeq.size() )
throw uno::RuntimeException(); // the parsing has still not finished!