diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-21 18:23:37 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-22 07:46:52 +0100 |
commit | f5a7821d694b98e020fe57efdb0bc22470e9e022 (patch) | |
tree | 57afd4590b81b7243879d7587df4f89b5043d03e /sd | |
parent | 193d4c3741753ae19481c849864f55267889e47e (diff) |
Reduce scope
Change-Id: I66ccb752f67b19e5dfb5d77fece3d0e9828f5a5c
Reviewed-on: https://gerrit.libreoffice.org/68177
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/framework/factories/FullScreenPane.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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(); |