diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-28 09:56:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-28 22:29:38 +0100 |
commit | be77cae912042c8c5fef8a41ccb4c6b2e10f5047 (patch) | |
tree | a2f7eb95ab7bbea3bcdac286659a156bb81c6006 /sc | |
parent | c36cba38cc33f22e3388968814f426e88b7f1cd8 (diff) |
cid#1555974 silence Unchecked return value
Change-Id: Id4d208013d9e25b6c14387963144f38fdcd992f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160016
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen5.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/charthelper.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/documen5.cxx b/sc/source/core/data/documen5.cxx index b9356b210bf1..0a9a4179f0bc 100644 --- a/sc/source/core/data/documen5.cxx +++ b/sc/source/core/data/documen5.cxx @@ -454,7 +454,7 @@ void ScDocument::UpdateChartRef( UpdateRefMode eUpdateRefMode, uno::Reference<embed::XEmbeddedObject> xIPObj = FindOleObjectByName(pChartListener->GetName()); - svt::EmbeddedObjectRef::TryRunningState( xIPObj ); + (void)svt::EmbeddedObjectRef::TryRunningState( xIPObj ); // After the change, chart keeps track of its own data source ranges, // the listener doesn't need to listen anymore, except the chart has diff --git a/sc/source/core/tool/charthelper.cxx b/sc/source/core/tool/charthelper.cxx index fa33b40314e9..82e11c055077 100644 --- a/sc/source/core/tool/charthelper.cxx +++ b/sc/source/core/tool/charthelper.cxx @@ -182,7 +182,7 @@ uno::Reference< chart2::XChartDocument > ScChartHelper::GetChartFromSdrObject( c uno::Reference< embed::XEmbeddedObject > xIPObj = static_cast<const SdrOle2Obj*>(pObject)->GetObjRef(); if( xIPObj.is() ) { - svt::EmbeddedObjectRef::TryRunningState( xIPObj ); + (void)svt::EmbeddedObjectRef::TryRunningState( xIPObj ); uno::Reference< util::XCloseable > xComponent = xIPObj->getComponent(); xReturn.set( uno::Reference< chart2::XChartDocument >( xComponent, uno::UNO_QUERY ) ); } @@ -294,7 +294,7 @@ void ScChartHelper::AddRangesIfProtectedChart( ScRangeListVector& rRangesVector, bool bDisableDataTableDialog = false; sal_Int32 nOldState = xEmbeddedObj->getCurrentState(); - svt::EmbeddedObjectRef::TryRunningState( xEmbeddedObj ); + (void)svt::EmbeddedObjectRef::TryRunningState( xEmbeddedObj ); uno::Reference< beans::XPropertySet > xProps( xEmbeddedObj->getComponent(), uno::UNO_QUERY ); if ( xProps.is() && ( xProps->getPropertyValue("DisableDataTableDialog") >>= bDisableDataTableDialog ) && @@ -382,7 +382,7 @@ void ScChartHelper::CreateProtectedChartListenersAndNotify( ScDocument& rDoc, co if ( xEmbeddedObj.is() && ( nRangeList < nRangeListCount ) ) { bool bDisableDataTableDialog = false; - svt::EmbeddedObjectRef::TryRunningState( xEmbeddedObj ); + (void)svt::EmbeddedObjectRef::TryRunningState( xEmbeddedObj ); uno::Reference< beans::XPropertySet > xProps( xEmbeddedObj->getComponent(), uno::UNO_QUERY ); if ( xProps.is() && ( xProps->getPropertyValue("DisableDataTableDialog") >>= bDisableDataTableDialog ) && |