dbaccess/source/ui/misc/TableCopyHelper.cxx | 2 +- dbaccess/source/ui/misc/asyncmodaldialog.cxx | 2 +- sc/source/ui/app/scmod.cxx | 2 +- sfx2/source/control/shell.cxx | 2 +- svx/source/form/fmshimp.cxx | 2 +- xmlsecurity/source/framework/saxeventkeeperimpl.cxx | 1 + 6 files changed, 6 insertions(+), 5 deletions(-)
New commits: commit 0025c300d6e952a4252fb3bdb7b4b91d1f7e59ec Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun May 12 14:24:17 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun May 12 19:39:10 2024 +0200 cid#1597307 silence Unchecked return value and cid#1597304 Unchecked return value cid#1597303 Unchecked return value cid#1597306 Unchecked return value cid#1597305 Unchecked return value Change-Id: I2fa1c467751405d3b69f1d9b552232e4d52b610e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167554 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/dbaccess/source/ui/misc/TableCopyHelper.cxx b/dbaccess/source/ui/misc/TableCopyHelper.cxx index ca2ef2a4d7ba..75be554a1cd1 100644 --- a/dbaccess/source/ui/misc/TableCopyHelper.cxx +++ b/dbaccess/source/ui/misc/TableCopyHelper.cxx @@ -107,7 +107,7 @@ void OTableCopyHelper::insertTable( std::u16string_view i_rSourceDataSource, con bool bAppendToExisting = !sTableNameForAppend.isEmpty(); xWizard->setOperation( bAppendToExisting ? CopyTableOperation::AppendData : CopyTableOperation::CopyDefinitionAndData ); - xWizard->execute(); + (void)xWizard->execute(); } catch( const SQLException& ) { diff --git a/dbaccess/source/ui/misc/asyncmodaldialog.cxx b/dbaccess/source/ui/misc/asyncmodaldialog.cxx index 8323d47dba6f..2c7db57be16e 100644 --- a/dbaccess/source/ui/misc/asyncmodaldialog.cxx +++ b/dbaccess/source/ui/misc/asyncmodaldialog.cxx @@ -65,7 +65,7 @@ namespace dbaui { try { - m_xDialog->execute(); + (void)m_xDialog->execute(); } catch( const Exception& ) { diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 50d71a589182..b06e3385cea1 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -532,7 +532,7 @@ void ScModule::Execute( SfxRequest& rReq ) try { css::uno::Reference < css::ui::dialogs::XExecutableDialog > xDialog = css::ui::dialogs::XSLTFilterDialog::create( ::comphelper::getProcessComponentContext()); - xDialog->execute(); + (void)xDialog->execute(); } catch( css::uno::RuntimeException& ) { diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index f368d3d2824d..f87fbb7d8282 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -281,7 +281,7 @@ void SfxShell::HandleOpenXmlFilterSettings(SfxRequest & rReq) try { uno::Reference < ui::dialogs::XExecutableDialog > xDialog = ui::dialogs::XSLTFilterDialog::create( ::comphelper::getProcessComponentContext() ); - xDialog->execute(); + (void)xDialog->execute(); } catch (const uno::Exception&) { diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 86798c8a85c7..f16511f29cc0 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -1391,7 +1391,7 @@ void FmXFormShell::ExecuteTabOrderDialog_Lock(const Reference<XTabControllerMode _rxForForm, getControlContainerForView_Lock(), xParentWindow ); - xDialog->execute(); + (void)xDialog->execute(); } catch( const Exception& ) { commit 970ee1d96cedef06a65997e40bf4d0402347fadd Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun May 12 12:57:51 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun May 12 19:39:01 2024 +0200 WaE: C6011 Dereferencing NULL pointer warnings Change-Id: I19824cd8fdc3ac5b5afb4e769527bf71513212fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167553 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx index fe6c0ed915d9..b490e24327d3 100644 --- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx +++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx @@ -625,6 +625,7 @@ void SAXEventKeeperImpl::releaseElementMarkBuffer() * Delete the TH from the buffer node. */ BufferNode *pBufferNode = pElementMark->getBufferNode(); + assert(pBufferNode); pBufferNode->setBlocker(nullptr); /*