diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-18 10:51:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-18 19:41:50 +0000 |
commit | 00c90e648c0bf5033ad51dc5cb495e788ecdd418 (patch) | |
tree | b4c5b97617b89282740ca0ada1447b22c48fcf6b /sfx2/source/control | |
parent | 4844c096a8ab6a9a620c410a0949d4499f12a504 (diff) |
add some SAL_WARN_UNUSED_RESULT
commit 817dfb74d9ec9f46ba32be6d5066d534f81072a5
Date: Tue Jul 17 09:45:37 2001 +0000
#89783#: NULL-Ptr possible
probably intended
pViewFrame = SfxViewFrame::GetFirst()
but at this distance in time, just accept the current state
of things
Change-Id: I8779fef1041843e9f2e6c879cfb475d8ac8251fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144401
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/ctrlitem.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx index 28edfec666de..1e5dc277909b 100644 --- a/sfx2/source/control/ctrlitem.cxx +++ b/sfx2/source/control/ctrlitem.cxx @@ -314,8 +314,6 @@ MapUnit SfxControllerItem::GetCoreMetric() const if ( !pDispat ) { SfxViewFrame* pViewFrame = SfxViewFrame::Current(); - if ( !pViewFrame ) - SfxViewFrame::GetFirst(); if ( pViewFrame ) pDispat = pViewFrame->GetDispatcher(); } |