sd/source/ui/framework/factories/FullScreenPane.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit f5a7821d694b98e020fe57efdb0bc22470e9e022 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Thu Feb 21 18:23:37 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Fri Feb 22 07:46:52 2019 +0100 Reduce scope Change-Id: I66ccb752f67b19e5dfb5d77fece3d0e9828f5a5c Reviewed-on: https://gerrit.libreoffice.org/68177 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx index e092d6fc9319..b9d227c00dfe 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.cxx +++ b/sd/source/ui/framework/factories/FullScreenPane.cxx @@ -216,11 +216,10 @@ void FullScreenPane::ExtractArguments ( { // Extract arguments from the resource URL. const util::URL aURL = rxPaneId->getFullResourceURL(); - sal_Int32 nIndex = 0; - OUString sValue; - while (nIndex >= 0) + for (sal_Int32 nIndex{ 0 }; nIndex >= 0; ) { const OUString aToken = aURL.Arguments.getToken(0, '&', nIndex); + OUString sValue; if (aToken.startsWith("ScreenNumber=", &sValue)) { rnScreenNumberReturnValue = sValue.toInt32(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits