diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-06 22:36:02 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-07 07:20:18 +0100 |
commit | 1b0beef8794210b2af49d8c4a00ca7d4e3ebedb7 (patch) | |
tree | 33ab3e47f8643ea48f6bee5a1aaa145f1c5b05d5 /desktop/source/pkgchk/unopkg | |
parent | 9d1f56903b05841020dfae21dca0c686483b2494 (diff) |
Use for-range loops in desktop (part2)
+ use 1 time replace size() > 0 by !empty()
Change-Id: If62a17171fc09e0bead7c0a791758705f62920d1
Reviewed-on: https://gerrit.libreoffice.org/50847
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'desktop/source/pkgchk/unopkg')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_misc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index aca6d5d0936a..70c8ac5249ee 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -316,12 +316,12 @@ void printf_packages( else { int index = 0; - for (auto i = allExtensions.begin(); i != allExtensions.end(); ++i, ++index) + for (auto const& extension : allExtensions) { if (vecUnaccepted[index]) - printf_unaccepted_licenses(*i); + printf_unaccepted_licenses(extension); else - printf_package( *i, xCmdEnv, level ); + printf_package( extension, xCmdEnv, level ); dp_misc::writeConsole("\n"); } } |