[Libreoffice-commits] core.git: sd/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 22 06:47:25 UTC 2019
sd/source/ui/framework/factories/FullScreenPane.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit f5a7821d694b98e020fe57efdb0bc22470e9e022
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Thu Feb 21 18:23:37 2019 +0100
Commit: Matteo Casalin <matteo.casalin at 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.casalin at 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();
More information about the Libreoffice-commits
mailing list