summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-25 13:29:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 03:04:22 +0200
commitd6d04400095c2663ff5e1f58018d76df78121704 (patch)
treea8a93fb7f83557539b02b26d35217207f187d612 /desktop/source/deployment/registry
parentb722989678429fbdb353737660a19ecd1db28d89 (diff)
loplugin:constmethod in comphelper..desktop
Change-Id: I3dbdc72b05c9d01cce279c783c60d191900f8b7c Reviewed-on: https://gerrit.libreoffice.org/79538 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/deployment/registry')
-rw-r--r--desktop/source/deployment/registry/executable/dp_executable.cxx4
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx4
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/deployment/registry/executable/dp_executable.cxx b/desktop/source/deployment/registry/executable/dp_executable.cxx
index 95ba4e96e222..0ef1d3e2d0a3 100644
--- a/desktop/source/deployment/registry/executable/dp_executable.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executable.cxx
@@ -61,7 +61,7 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend
Reference<XCommandEnvironment> const & xCmdEnv ) override;
bool getFileAttributes(sal_uInt64& out_Attributes);
- bool isUrlTargetInExtension();
+ bool isUrlTargetInExtension() const;
public:
ExecutablePackageImpl(
@@ -260,7 +260,7 @@ void BackendImpl::ExecutablePackageImpl::processPackage_(
//But we can check if we are within $UNO_USER_PACKAGES_CACHE etc.
//Done for security reasons. For example an extension manifest could contain a path to
//an executable outside the extension.
-bool BackendImpl::ExecutablePackageImpl::isUrlTargetInExtension()
+bool BackendImpl::ExecutablePackageImpl::isUrlTargetInExtension() const
{
bool bSuccess = false;
OUString sExtensionDir;
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 38f809c6a40f..712742ed93c5 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -148,7 +148,7 @@ class BackendImpl : public ImplBaseT
const Reference< ucb::XCommandEnvironment >& xCmdEnv,
const OUString& licenseUrl);
- DescriptionInfoset getDescriptionInfoset();
+ DescriptionInfoset getDescriptionInfoset() const;
// Package
virtual beans::Optional< beans::Ambiguous<sal_Bool> > isRegistered_(
@@ -561,7 +561,7 @@ OUString BackendImpl::PackageImpl::getTextFromURL(
}
-DescriptionInfoset BackendImpl::PackageImpl::getDescriptionInfoset()
+DescriptionInfoset BackendImpl::PackageImpl::getDescriptionInfoset() const
{
return dp_misc::getDescriptionInfoset(m_url_expanded);
}
diff --git a/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx b/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx
index 620e01b24c3c..001e8b2e156f 100644
--- a/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx
+++ b/desktop/source/deployment/registry/sfwk/dp_parceldesc.hxx
@@ -45,8 +45,8 @@ private:
sal_Int32 skipIndex;
public:
ParcelDescDocHandler():m_bIsParsed( false ), skipIndex( 0 ){}
- const OUString& getParcelLanguage() { return m_sLang; }
- bool isParsed() { return m_bIsParsed; }
+ const OUString& getParcelLanguage() const { return m_sLang; }
+ bool isParsed() const { return m_bIsParsed; }
// XDocumentHandler
virtual void SAL_CALL startDocument() override;