diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-22 10:07:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-22 13:14:01 +0100 |
commit | 2a998a5fe0c5d84c3f53caf532cbd352b2541085 (patch) | |
tree | b6a5188f8bc5e823e4976f364acb9fbf6b0bede0 /sw | |
parent | c5f0852832319e64a5b83177e23fc0922002dfab (diff) |
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@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/undo/untbl.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
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 |