xmloff/source/core/xmlimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 35f7d9a18fa7f559a1427e1b8a0f094f864f945a Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Nov 2 09:03:29 2020 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Nov 2 10:50:31 2020 +0100 -Werror=parentheses Change-Id: I6f4214a235dbeaade8e58597f784a0e435616682 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105166 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Stephan Bergmann <sberg...@redhat.com> Tested-by: Jenkins 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 ) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits