summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-08 14:10:57 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-09 09:29:34 +0200
commitd884c4be18a82f61fe6db6f22cb1bf1092afd48a (patch)
tree89de580b7cc48cc91e7f072b62fc57c528e7a55a /sw/source/ui/envelp
parentad1f0bdeac30fca1dc56a08803ef23f2aca4db05 (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I37166c03ffd0f8f76ddc03ce556b6e6341a02b48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167355 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/ui/envelp')
-rw-r--r--sw/source/ui/envelp/envfmt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
index 9cf6d8e01c9c..89b7ee7b8f70 100644
--- a/sw/source/ui/envelp/envfmt.cxx
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -172,11 +172,11 @@ IMPL_LINK(SwEnvFormatPage, SendEditHdl, const OUString&, rIdent, void)
void SwEnvFormatPage::Edit(std::u16string_view rIdent, bool bSender)
{
SwWrtShell* pSh = GetParentSwEnvDlg()->m_pSh;
- OSL_ENSURE(pSh, "Shell missing");
+ assert(pSh && "Shell missing");
SwTextFormatColl* pColl = pSh->GetTextCollFromPool( static_cast< sal_uInt16 >(
bSender ? RES_POOLCOLL_SEND_ADDRESS : RES_POOLCOLL_ENVELOPE_ADDRESS));
- OSL_ENSURE(pColl, "Text collection missing");
+ assert(pColl && "Text collection missing");
if (o3tl::starts_with(rIdent, u"character"))
{