summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/framework/factories/FullScreenPane.cxx5
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();