From 04b183a9bc792a53a9f081353a79486faa4f3872 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 11 Dec 2014 23:32:12 +0100 Subject: fdo#39440 reduce scope of local variables This addresses some cppcheck warnings. Change-Id: Ifbc5a7a562e714f48dcfd51a75e9a4e0bfcde81c Reviewed-on: https://gerrit.libreoffice.org/13443 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- desktop/source/pkgchk/unopkg/unopkg_app.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop/source/pkgchk') diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx index 04dcac8fccc7..5bef9ed301ec 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx @@ -187,7 +187,6 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main() bool option_verbose = false; bool option_bundled = false; bool option_suppressLicense = false; - bool subcmd_add = false; bool subcmd_gui = false; OUString logFile; OUString repository; @@ -239,7 +238,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main() osl_getCommandArg( nPos, &subCommand.pData ); ++nPos; subCommand = subCommand.trim(); - subcmd_add = subCommand == "add"; + bool subcmd_add = subCommand == "add"; subcmd_gui = subCommand == "gui"; // sun-command options and packages: -- cgit