summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 12:30:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-29 12:43:37 +0200
commit1820fcbbc38e82daf43ebe759200050ce05b3fe1 (patch)
treef5a494e6a437971ef7b9ae003547d4b156bb8b13 /xmlhelp
parent66889d5219cec22bd0e654e5a812e90cdd04e59d (diff)
constmethod for accessor-type methods
Apply the constmethod plugin, but only to accessor-type methods, e.g. IsFoo(), GetBar(), etc, where we can be sure of that constifying is a reasonable thing to do. Change-Id: Ibc97f5f359a0992dd1ce2d66f0189f8a0a43d98a Reviewed-on: https://gerrit.libreoffice.org/74269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.hxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.hxx8
3 files changed, 6 insertions, 6 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index cf5e5c0fa128..bf45b130a40e 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -166,7 +166,7 @@ Databases::~Databases()
m_aKeywordInfo.clear();
}
-OString Databases::getImageTheme()
+OString Databases::getImageTheme() const
{
uno::Reference< lang::XMultiServiceFactory > xConfigProvider =
configuration::theDefaultProvider::get(m_xContext);
diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx
index ff1c6fd69271..3577b39d975f 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.hxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.hxx
@@ -141,7 +141,7 @@ namespace chelp {
~Databases();
- OString getImageTheme();
+ OString getImageTheme() const;
OUString getInstallPathAsURL();
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
index 7adc4c1aa4e9..a4c33513d5ff 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
@@ -40,7 +40,7 @@ namespace chelp {
{
}
- OUString getHash()
+ OUString getHash() const
{
if( m_ptr )
{
@@ -54,7 +54,7 @@ namespace chelp {
}
- OUString getFile()
+ OUString getFile() const
{
if( ! m_ptr )
return OUString();
@@ -69,7 +69,7 @@ namespace chelp {
}
- OUString getDatabase()
+ OUString getDatabase() const
{
if( ! m_ptr )
return OUString();
@@ -79,7 +79,7 @@ namespace chelp {
}
- OUString getTitle()
+ OUString getTitle() const
{
if( ! m_ptr )
return OUString();