summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hlmailtp.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-15 20:17:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-16 09:59:06 +0000
commit56e0b27d39e266be49fac93361944878ff763acd (patch)
tree634a126d74c5e5344ee044a20b1a945e7163ad84 /cui/source/dialogs/hlmailtp.cxx
parent4a998d9eea012896d4a5d256048407a766fc0bbd (diff)
misc: check SfxViewFrame::Current()
SfxViewFrame::Current() is a festering wound, these ones look like they were safe anyway, so no need to backport. But with enough checked static analysis will kick in to flag new unchecked ones. Change-Id: I2925c4fa4e2d48c1e676ffe7951e65120192517e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144277 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/dialogs/hlmailtp.cxx')
-rw-r--r--cui/source/dialogs/hlmailtp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx
index 4a099524fed5..4bee51baf721 100644
--- a/cui/source/dialogs/hlmailtp.cxx
+++ b/cui/source/dialogs/hlmailtp.cxx
@@ -209,8 +209,7 @@ IMPL_LINK_NOARG(SvxHyperlinkMailTp, ModifiedReceiverHdl_Impl, weld::ComboBox&, v
|************************************************************************/
IMPL_STATIC_LINK_NOARG(SvxHyperlinkMailTp, ClickAdrBookHdl_Impl, weld::Button&, void)
{
- SfxViewFrame* pViewFrame = SfxViewFrame::Current();
- if( pViewFrame )
+ if (SfxViewFrame* pViewFrame = SfxViewFrame::Current())
{
SfxItemPool &rPool = pViewFrame->GetPool();
SfxRequest aReq(SID_VIEW_DATA_SOURCE_BROWSER, SfxCallMode::SLOT, rPool);