tdf#163486: PVS: Expression is always true
V560 A part of conditional expression is always true: pItem. Change-Id: I4ae18820dc7ec3232bccb099e56dd0da2b4f59eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175456 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -800,10 +800,9 @@ void FmGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, weld::Menu& rM
|
||||
std::unique_ptr<SfxBoolItem> pItem;
|
||||
SfxItemState eState = pCurrentFrame->GetBindings().QueryState(SID_FM_CTL_PROPERTIES, pItem);
|
||||
|
||||
if (eState >= SfxItemState::DEFAULT && pItem != nullptr)
|
||||
if (eState >= SfxItemState::DEFAULT && pItem)
|
||||
{
|
||||
bool bChecked = pItem && pItem->GetValue();
|
||||
rMenu.set_active(u"column"_ustr, bChecked);
|
||||
rMenu.set_active(u"column"_ustr, pItem->GetValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user