summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-09-20 12:15:30 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-09-21 09:07:38 +0200
commitf6ab08f6f463975d6651dc3296ec04c67b9151fd (patch)
treee83efe80624a2667f18758caba96f13ed8ceb2f0 /vcl/source
parent0d3433d74f1e9f1e6b3fc8b110c3892186d4aa71 (diff)
tdf#130857 VclBuilder: Reduce var scope
Change-Id: I20e48e308b2c25c3b328cc7c30271a05479da22b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173713 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/builder.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 7369507515c0..57d6036d1e78 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -3779,13 +3779,13 @@ void BuilderBase::handleInterfaceDomain(xmlreader::XmlReader& rReader)
void VclBuilder::handlePacking(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader)
{
- xmlreader::Span name;
- int nsId;
-
int nLevel = 1;
while(true)
{
+ xmlreader::Span name;
+ int nsId;
+
xmlreader::XmlReader::Result res = reader.nextItem(
xmlreader::XmlReader::Text::NONE, &name, &nsId);