diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 10:47:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 10:44:29 +0100 |
commit | b8fe96f1da2c42c04a8094ca8c57d49763b7bded (patch) | |
tree | d2b1852c89f1776ef8ee25bbb99c6bd74a1ae984 /desktop | |
parent | 7960ccb41db49a7883afa036b820a7b7ffcb4a89 (diff) |
loplugin:constantparam in desktop..i18npool
Change-Id: Ie2e1004c1ccc03777a8da9cb1144e89eb28ff313
Reviewed-on: https://gerrit.libreoffice.org/50928
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/dp_registry.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx index 83cd03179119..9d12da270d24 100644 --- a/desktop/source/deployment/registry/dp_registry.cxx +++ b/desktop/source/deployment/registry/dp_registry.cxx @@ -103,7 +103,7 @@ protected: public: static Reference<deployment::XPackageRegistry> create( OUString const & context, - OUString const & cachePath, bool readOnly, + OUString const & cachePath, Reference<XComponentContext> const & xComponentContext ); // XUpdatable @@ -273,7 +273,7 @@ void PackageRegistryImpl::insertBackend( Reference<deployment::XPackageRegistry> PackageRegistryImpl::create( OUString const & context, - OUString const & cachePath, bool readOnly, + OUString const & cachePath, Reference<XComponentContext> const & xComponentContext ) { PackageRegistryImpl * that = new PackageRegistryImpl; @@ -304,10 +304,9 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create( rtl_UriEncodeIgnoreEscapes, RTL_TEXTENCODING_UTF8 ) ) ); registryArgs[ 1 ] <<= registryCachePath; - registryArgs[ 2 ] <<= readOnly; - if (! readOnly) - create_folder( nullptr, registryCachePath, - Reference<XCommandEnvironment>() ); + registryArgs[ 2 ] <<= false; // readOnly; + create_folder( nullptr, registryCachePath, + Reference<XCommandEnvironment>() ); } Reference<deployment::XPackageRegistry> xBackend; @@ -342,7 +341,7 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create( // backends. Reference<deployment::XPackageRegistry> extensionBackend = ::dp_registry::backend::bundle::create( - that, context, cachePath, readOnly, xComponentContext); + that, context, cachePath, /*readOnly*/false, xComponentContext); that->insertBackend(extensionBackend); Reference<lang::XServiceInfo> xServiceInfo( @@ -525,7 +524,7 @@ Reference<deployment::XPackageRegistry> create( Reference<XComponentContext> const & xComponentContext ) { return PackageRegistryImpl::create( - context, cachePath, false/*readOnly*/, xComponentContext ); + context, cachePath, xComponentContext ); } } // namespace dp_registry |