diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-29 08:36:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-29 14:13:54 +0200 |
commit | 56c6e1d6f2e5f16ac498305470fb35d4f5e1fea1 (patch) | |
tree | 922f74cb1b531a3a7e90d51837760b1715938689 /sw | |
parent | 5a9c035486a1b2d0796656e33a659718d0b21c09 (diff) |
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 <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/html/SwAppletImpl.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
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() ) { |