Kaydet (Commit) f5a7821d authored tarafından Matteo Casalin's avatar Matteo Casalin

Reduce scope

Change-Id: I66ccb752f67b19e5dfb5d77fece3d0e9828f5a5c
Reviewed-on: https://gerrit.libreoffice.org/68177
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 193d4c37
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment