From 054c0e7177cbef26942f8ca7cb7b1422ceea721c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Jun 2020 10:40:26 +0200 Subject: loplugin:simplifypointertobool improve to look for the x.get() != null pattern, which can be simplified to x I'll do the x.get() == nullptr pattern in a separate patch, to reduce the chances of a mistake Change-Id: I45e0d178e75359857cdf50d712039cb526016555 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95354 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/control/tabctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/control') diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 4c7ee7b964d0..4d483d943dc0 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -1041,7 +1041,7 @@ IMPL_LINK( TabControl, ImplWindowEventListener, VclWindowEvent&, rEvent, void ) void TabControl::MouseButtonDown( const MouseEvent& rMEvt ) { - if (mpTabCtrlData->mpListBox.get() != nullptr || !rMEvt.IsLeft()) + if (mpTabCtrlData->mpListBox || !rMEvt.IsLeft()) return; ImplTabItem *pItem = ImplGetItem(rMEvt.GetPosPixel()); -- cgit