summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-02 09:03:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-02 10:50:31 +0100
commit35f7d9a18fa7f559a1427e1b8a0f094f864f945a (patch)
tree5e4b0154c2c86f23278eb08abd1dbb1cfa25c887 /xmloff
parent58f755f0321777cfb4f921e12f7f29a67e7c2c40 (diff)
-Werror=parentheses
Change-Id: I6f4214a235dbeaade8e58597f784a0e435616682 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105166 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 7886d150948b..2f1a1dee4f10 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -814,7 +814,7 @@ void SAL_CALL SvXMLImport::startFastElement (sal_Int32 Element,
tmp = pHandler->CreateChildContext(nPrefix, aLocalName, maAttrList.get() ).get();
}
xContext = dynamic_cast<SvXMLImportContext*>(tmp.get());
- assert(tmp && xContext || (!tmp && !xContext));
+ assert((tmp && xContext) || (!tmp && !xContext));
}
else
xContext.set( CreateFastContext( Element, Attribs ) );
@@ -886,7 +886,7 @@ void SAL_CALL SvXMLImport::startUnknownElement (const OUString & rNamespace, con
tmp = pHandler->CreateChildContext(nPrefix, aLocalName, maAttrList.get() ).get();
}
xContext = dynamic_cast<SvXMLImportContext*>(tmp.get());
- assert(tmp && xContext || (!tmp && !xContext));
+ assert((tmp && xContext) || (!tmp && !xContext));
}
else
xContext.set( CreateFastContext( -1, Attribs ) );