sc/source/core/data/documen5.cxx    |    2 +-
 sc/source/core/tool/charthelper.cxx |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit be77cae912042c8c5fef8a41ccb4c6b2e10f5047
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Nov 28 09:56:51 2023 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Nov 28 22:29:38 2023 +0100

    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.mcnam...@collabora.com>

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 
) &&

Reply via email to