[Libreoffice-commits] core.git: xmloff/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 2 09:51:07 UTC 2020


 xmloff/source/core/xmlimp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 35f7d9a18fa7f559a1427e1b8a0f094f864f945a
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Nov 2 09:03:29 2020 +0100
Commit:     Stephan Bergmann <sbergman at 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.grandin at collabora.co.uk>
    Reviewed-by: Stephan Bergmann <sbergman at 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 ) );


More information about the Libreoffice-commits mailing list