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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 22 12:14:49 UTC 2021


 sw/source/core/undo/untbl.cxx |   34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

New commits:
commit 2a998a5fe0c5d84c3f53caf532cbd352b2541085
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Mar 22 10:07:15 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Mar 22 13:14:01 2021 +0100

    explicitly ignore return values for coverity warnings
    
    Change-Id: I58571ba02de4775218a5840ddede28e17e74bfff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112868
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index a744e8316c89..3197ddbc4d64 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -2301,38 +2301,38 @@ UndoTableCpyTable_Entry::UndoTableCpyTable_Entry( const SwTableBox& rBox )
 
 void UndoTableCpyTable_Entry::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
-    xmlTextWriterStartElement(pWriter, BAD_CAST("UndoTableCpyTable_Entry"));
+    (void)xmlTextWriterStartElement(pWriter, BAD_CAST("UndoTableCpyTable_Entry"));
 
-    xmlTextWriterStartElement(pWriter, BAD_CAST("nBoxIdx"));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
+    (void)xmlTextWriterStartElement(pWriter, BAD_CAST("nBoxIdx"));
+    (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
                                 BAD_CAST(OString::number(nBoxIdx).getStr()));
-    xmlTextWriterEndElement(pWriter);
+    (void)xmlTextWriterEndElement(pWriter);
 
-    xmlTextWriterStartElement(pWriter, BAD_CAST("nOffset"));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
+    (void)xmlTextWriterStartElement(pWriter, BAD_CAST("nOffset"));
+    (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
                                 BAD_CAST(OString::number(nOffset).getStr()));
-    xmlTextWriterEndElement(pWriter);
+    (void)xmlTextWriterEndElement(pWriter);
 
     if (pBoxNumAttr)
     {
-        xmlTextWriterStartElement(pWriter, BAD_CAST("pBoxNumAttr"));
+        (void)xmlTextWriterStartElement(pWriter, BAD_CAST("pBoxNumAttr"));
         pBoxNumAttr->dumpAsXml(pWriter);
-        xmlTextWriterEndElement(pWriter);
+        (void)xmlTextWriterEndElement(pWriter);
     }
 
     if (pUndo)
     {
-        xmlTextWriterStartElement(pWriter, BAD_CAST("pUndo"));
+        (void)xmlTextWriterStartElement(pWriter, BAD_CAST("pUndo"));
         pUndo->dumpAsXml(pWriter);
-        xmlTextWriterEndElement(pWriter);
+        (void)xmlTextWriterEndElement(pWriter);
     }
 
-    xmlTextWriterStartElement(pWriter, BAD_CAST("bJoin"));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
+    (void)xmlTextWriterStartElement(pWriter, BAD_CAST("bJoin"));
+    (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
                                 BAD_CAST(OString::boolean(bJoin).getStr()));
-    xmlTextWriterEndElement(pWriter);
+    (void)xmlTextWriterEndElement(pWriter);
 
-    xmlTextWriterEndElement(pWriter);
+    (void)xmlTextWriterEndElement(pWriter);
 }
 
 SwUndoTableCpyTable::SwUndoTableCpyTable(const SwDoc& rDoc)
@@ -2744,7 +2744,7 @@ bool SwUndoTableCpyTable::InsertRow( SwTable& rTable, const SwSelBoxes& rBoxes,
 
 void SwUndoTableCpyTable::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
-    xmlTextWriterStartElement(pWriter, BAD_CAST("SwUndoTableCpyTable"));
+    (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwUndoTableCpyTable"));
 
     for (const auto& pEntry : m_vArr)
     {
@@ -2756,7 +2756,7 @@ void SwUndoTableCpyTable::dumpAsXml(xmlTextWriterPtr pWriter) const
         m_pInsRowUndo->dumpAsXml(pWriter);
     }
 
-    xmlTextWriterEndElement(pWriter);
+    (void)xmlTextWriterEndElement(pWriter);
 }
 
 bool SwUndoTableCpyTable::IsEmpty() const


More information about the Libreoffice-commits mailing list