summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-19 15:11:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-19 19:28:11 +0200
commit8efd46ed867b66f9fbc31dbaa1d46bc91ea29ae2 (patch)
treeeafc8ade307c5fe797fdddddfa6d9dc39c935b8a /desktop/source/pkgchk
parent9c10e29287740f473fa4f33ac6188b8c8543bfbb (diff)
loplugin:constvars in cppuhelper..desktop
Change-Id: Iaf42114ab98875c4bc1545684f1893540b998ef2 Reviewed-on: https://gerrit.libreoffice.org/77723 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/pkgchk')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index f6e4d0c19b7c..5600de4619e9 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -399,7 +399,7 @@ extern "C" int unopkg_main()
if ( subcmd_add || subCommand == "remove" )
{
- for (OUString & cmdPackage : cmdPackages)
+ for (const OUString & cmdPackage : cmdPackages)
{
if (subcmd_add)
{
@@ -483,7 +483,7 @@ extern "C" int unopkg_main()
{
//The user provided the names (ids or file names) of the extensions
//which shall be listed
- for (OUString & cmdPackage : cmdPackages)
+ for (const OUString & cmdPackage : cmdPackages)
{
Reference<deployment::XPackage> extension;
try
@@ -531,7 +531,7 @@ extern "C" int unopkg_main()
vecExtUnaccepted, xExtensionManager->getExtensionsWithUnacceptedLicenses(
repository, xCmdEnv));
- for (OUString & cmdPackage : cmdPackages)
+ for (const OUString & cmdPackage : cmdPackages)
{
Reference<deployment::XPackage> extension;
try