diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 10:27:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 13:25:04 +0200 |
commit | ead19f4c62c8d74292a7ba589df2ca118cea3240 (patch) | |
tree | 69fa5d9bf938e7e1532b75183730c7800cf793ae /sfx2/source/dialog/templdlg.cxx | |
parent | 1d95bd8e5fcdcc241f4c945a4f01486df8e61f88 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Ic2231df89b900c17beac4627e3573b45aef0bc26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166954
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 197e55b40bfb..02981e7f7672 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -670,8 +670,8 @@ void SfxCommonTemplateDialog_Impl::ActionSelect(const OUString& rEntry, StyleLis static OUString getModuleIdentifier( const Reference< XModuleManager2 >& i_xModMgr, SfxObjectShell const * i_pObjSh ) { - OSL_ENSURE( i_xModMgr.is(), "getModuleIdentifier(): no XModuleManager" ); - OSL_ENSURE( i_pObjSh, "getModuleIdentifier(): no ObjectShell" ); + assert(i_xModMgr.is() && "getModuleIdentifier(): no XModuleManager"); + assert(i_pObjSh && "getModuleIdentifier(): no ObjectShell"); OUString sIdentifier; |