From a1b58e93f631c6bfd92fc8269da89c74e3784d58 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Mar 2018 14:22:34 +0200 Subject: loplugin:constantparam Change-Id: I3ce653c0d9e517229dbbe32cc8d3ec3c206e364d Reviewed-on: https://gerrit.libreoffice.org/51273 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/deployment/inc/dp_package.hxx | 2 +- desktop/source/deployment/registry/dp_registry.cxx | 2 +- desktop/source/deployment/registry/package/dp_package.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop') diff --git a/desktop/source/deployment/inc/dp_package.hxx b/desktop/source/deployment/inc/dp_package.hxx index 579b008e43c2..22ab1a5a2d4b 100644 --- a/desktop/source/deployment/inc/dp_package.hxx +++ b/desktop/source/deployment/inc/dp_package.hxx @@ -35,7 +35,7 @@ namespace dp_registry { namespace backend { namespace bundle { css::uno::Reference create( css::uno::Reference const & xRootRegistry, - OUString const & context, OUString const & cachePath, bool readOnly, + OUString const & context, OUString const & cachePath, css::uno::Reference const & xComponentContext); } } } diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx index 9d12da270d24..26da83826b93 100644 --- a/desktop/source/deployment/registry/dp_registry.cxx +++ b/desktop/source/deployment/registry/dp_registry.cxx @@ -341,7 +341,7 @@ Reference PackageRegistryImpl::create( // backends. Reference extensionBackend = ::dp_registry::backend::bundle::create( - that, context, cachePath, /*readOnly*/false, xComponentContext); + that, context, cachePath, xComponentContext); that->insertBackend(extensionBackend); Reference xServiceInfo( diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx index 7ea79fd9454d..ff7a245f6519 100644 --- a/desktop/source/deployment/registry/package/dp_package.cxx +++ b/desktop/source/deployment/registry/package/dp_package.cxx @@ -1588,14 +1588,14 @@ BackendImpl::PackageImpl::getPackagesFromDb( Reference create( Reference const & xRootRegistry, - OUString const & context, OUString const & cachePath, bool readOnly, + OUString const & context, OUString const & cachePath, Reference const & xComponentContext ) { Sequence args(cachePath.isEmpty() ? 1 : 3 ); args[ 0 ] <<= context; if (!cachePath.isEmpty()) { args[ 1 ] <<= cachePath; - args[ 2 ] <<= readOnly; + args[ 2 ] <<= false; // readOnly } return new BackendImpl( args, xComponentContext, xRootRegistry ); } -- cgit v1.2.3