cppuhelper/source/paths.cxx                |    7 +++----
 reportdesign/source/core/sdr/RptObject.cxx |    2 +-
 svl/source/items/itemset.cxx               |    2 +-
 sw/source/core/unocore/unoframe.cxx        |    2 +-
 sw/source/filter/html/SwAppletImpl.cxx     |    2 +-
 sw/source/uibase/shells/textsh.cxx         |    2 +-
 6 files changed, 8 insertions(+), 9 deletions(-)

New commits:
commit 348591702a84209476aedc8cc286cc90ff16558a
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Sep 29 08:44:26 2023 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Sep 29 14:14:06 2023 +0200

    cid#1545230 Unchecked return value
    
    Change-Id: If25dcbb9784c041b61fe9aaea213035a4769962b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157397
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 48f0679e481d..62f4df050577 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -1284,7 +1284,7 @@ sal_uInt16 SfxItemSet::GetWhichByOffset( sal_uInt16 
nOffset ) const
 
     // 1st try to get a set SfxPoolItem and fetch the WhichID from there.
     const SfxPoolItem* pItem(nullptr);
-    GetItemState_ForOffset(nOffset, &pItem);
+    (void)GetItemState_ForOffset(nOffset, &pItem);
 
     if (nullptr != pItem && 0 != pItem->Which())
         return pItem->Which();
commit d282d737921e33bacb3ca81b16270702903fdbed
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Sep 29 08:41:27 2023 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Sep 29 14:14:00 2023 +0200

    cid#1537991 Unchecked return value
    
    Change-Id: I303817f007dd0035e64d15b3f9310a06aab18060
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157396
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx
index 28a1d34658b3..cf8c748ee7e0 100644
--- a/cppuhelper/source/paths.cxx
+++ b/cppuhelper/source/paths.cxx
@@ -38,12 +38,11 @@ namespace {
 OUString get_this_libpath() {
     static OUString s_uri = []() {
         OUString uri;
-        
osl::Module::getUrlFromAddress(reinterpret_cast<oslGenericFunction>(get_this_libpath),
 uri);
-        sal_Int32 i = uri.lastIndexOf('/');
+        sal_Int32 i = -1;
+        if 
(osl::Module::getUrlFromAddress(reinterpret_cast<oslGenericFunction>(get_this_libpath),
 uri))
+            i = uri.lastIndexOf('/');
         if (i == -1)
-        {
             throw css::uno::DeploymentException("URI " + uri + " is expected 
to contain a slash");
-        }
         return uri.copy(0, i);
     }();
 
commit 56c6e1d6f2e5f16ac498305470fb35d4f5e1fea1
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Sep 29 08:36:56 2023 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Sep 29 14:13:54 2023 +0200

    cid#1546827 Unchecked return value
    
    and
    
    cid#1546828 Unchecked return value
    cid#1546830 Unchecked return value
    cid#1546833 Unchecked return value
    
    Change-Id: I9ed0246f27a3e652d31346e0543b207249f7e1a8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157395
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/reportdesign/source/core/sdr/RptObject.cxx 
b/reportdesign/source/core/sdr/RptObject.cxx
index 7432e238f7cc..55dd6034e928 100644
--- a/reportdesign/source/core/sdr/RptObject.cxx
+++ b/reportdesign/source/core/sdr/RptObject.cxx
@@ -944,7 +944,7 @@ OOle2Obj::OOle2Obj(SdrModel& rSdrModel, OOle2Obj const & 
rSource)
     m_bIsListening = true;
 
     OReportModel& rRptModel(static_cast< OReportModel& 
>(getSdrModelFromSdrObject()));
-    svt::EmbeddedObjectRef::TryRunningState( GetObjRef() );
+    (void)svt::EmbeddedObjectRef::TryRunningState( GetObjRef() );
     impl_createDataProvider_nothrow(rRptModel.getReportDefinition());
 
     uno::Reference< chart2::data::XDatabaseDataProvider > xSource( 
lcl_getDataProvider(rSource.GetObjRef()) );
diff --git a/sw/source/core/unocore/unoframe.cxx 
b/sw/source/core/unocore/unoframe.cxx
index 61dde3157e31..329517cc11da 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -2994,7 +2994,7 @@ void 
SwXFrame::attachToRange(uno::Reference<text::XTextRange> const& xTextRange,
                     sal_Int64 nAspect = m_nDrawAspect;
 
                     // TODO/LEAN: VisualArea still needs running state
-                    svt::EmbeddedObjectRef::TryRunningState( xIPObj );
+                    (void)svt::EmbeddedObjectRef::TryRunningState( xIPObj );
 
                     // set parent to get correct VisArea(in case of object 
needing parent printer)
                     uno::Reference < container::XChild > xChild( xIPObj, 
uno::UNO_QUERY );
diff --git a/sw/source/filter/html/SwAppletImpl.cxx 
b/sw/source/filter/html/SwAppletImpl.cxx
index 9c0d64bb7c01..9dbca2748305 100644
--- a/sw/source/filter/html/SwAppletImpl.cxx
+++ b/sw/source/filter/html/SwAppletImpl.cxx
@@ -123,7 +123,7 @@ void SwApplet_Impl::CreateApplet( const OUString& rCode, 
const OUString& rName,
 
     // create Applet; it will be in running state
     m_xApplet = aCnt.CreateEmbeddedObject( SvGlobalName( SO3_APPLET_CLASSID 
).GetByteSequence(), aName );
-    ::svt::EmbeddedObjectRef::TryRunningState( m_xApplet );
+    (void)::svt::EmbeddedObjectRef::TryRunningState( m_xApplet );
 
     INetURLObject aUrlBase(rDocumentBaseURL);
     aUrlBase.removeSegment();
diff --git a/sw/source/uibase/shells/textsh.cxx 
b/sw/source/uibase/shells/textsh.cxx
index f6363abee4a0..76e0bc0a3511 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -317,7 +317,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
             OUString aName;
             xObj.Assign( aCnt.CreateEmbeddedObject( SvGlobalName( 
SO3_IFRAME_CLASSID ).GetByteSequence(), aName ),
                         embed::Aspects::MSOLE_CONTENT );
-            svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() );
+            (void)svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() );
             uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), 
uno::UNO_QUERY );
             if ( xSet.is() )
             {

Reply via email to