From 7a5014b24e2755e56790dbfd56fea2c789aa792c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 19 Mar 2021 14:47:58 +0000 Subject: silence coverity unchecked return value from library on xmlText* functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I651abb00d8ae1bdbf758a6a0176fd8912531a585 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112753 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- chart2/source/model/main/ChartModel.cxx | 6 +++--- chart2/source/view/main/ChartView.cxx | 6 +++--- chart2/source/view/main/DrawModelWrapper.cxx | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'chart2') diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 47684b21f060..164daeed7c3d 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -741,15 +741,15 @@ void ChartModel::removeDataProviders() void ChartModel::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("ChartModel")); - xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("ChartModel")); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); if (mxChartView.is()) { mxChartView->dumpAsXml(pWriter); } - xmlTextWriterEndElement(pWriter); + (void)xmlTextWriterEndElement(pWriter); } sal_Bool SAL_CALL ChartModel::hasInternalDataProvider() diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 41a9aaa00393..89e59616dab4 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2892,15 +2892,15 @@ OUString ChartView::dump() void ChartView::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("ChartView")); - xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("ChartView")); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); if (m_pDrawModelWrapper) { m_pDrawModelWrapper->dumpAsXml(pWriter); } - xmlTextWriterEndElement(pWriter); + (void)xmlTextWriterEndElement(pWriter); } void ChartView::setViewDirty() diff --git a/chart2/source/view/main/DrawModelWrapper.cxx b/chart2/source/view/main/DrawModelWrapper.cxx index c581b3871300..68ffac559a25 100644 --- a/chart2/source/view/main/DrawModelWrapper.cxx +++ b/chart2/source/view/main/DrawModelWrapper.cxx @@ -328,12 +328,12 @@ bool DrawModelWrapper::removeShape( const uno::Reference< drawing::XShape >& xSh void DrawModelWrapper::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("DrawModelWrapper")); - xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DrawModelWrapper")); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); SdrModel::dumpAsXml(pWriter); - xmlTextWriterEndElement(pWriter); + (void)xmlTextWriterEndElement(pWriter); } } //namespace chart -- cgit