summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2013-12-08 22:55:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-09 12:53:22 +0100
commit93210ec3b3e7e773e998a3771136043748232f85 (patch)
treef2c0075ffff49b490afcb9feab29a27b4daccad2 /configmgr
parentfbd54a2852d9a8d1c7fa10684a458b6c4d68bfee (diff)
fdo#69027 check for state_.top().locked
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: I wonder why I originally introduced State::locked in addition to State:ignored in the first place, but can't find a good reason for that now. So the patch looks ok, though it could be further simplified to completely get rid of State::locked. Will do that in a follow-up commit. Change-Id: If07a07b21effbf42918408a0b60b2d18bdc8665c
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/xcuparser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/xcuparser.cxx b/configmgr/source/xcuparser.cxx
index e77025fb70b2..685cf0c63c50 100644
--- a/configmgr/source/xcuparser.cxx
+++ b/configmgr/source/xcuparser.cxx
@@ -92,7 +92,7 @@ bool XcuParser::startElement(
reader.getUrl()),
css::uno::Reference< css::uno::XInterface >());
}
- } else if (state_.top().ignore) {
+ } else if (state_.top().ignore || state_.top().locked) {
state_.push(State(false));
} else if (!state_.top().node.is()) {
if (nsId == xmlreader::XmlReader::NAMESPACE_NONE && name.equals("item"))