vcl/source/window/window2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9cb748847f63f73a7a0bbd63d34a5f3ebf789919 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Oct 18 10:49:56 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Oct 18 12:27:10 2024 +0200 tdf#163486: PVS: recurring check V571 Recurring check. The 'pData' condition was already verified in line 795. Change-Id: I0aebea88938a2e23bb1eb7c9f4e836b013f5664e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175124 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 0ae442b03a53..284877d3213f 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -794,14 +794,14 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd, const CommandGesturePanData* pData = rCmd.GetGesturePanData(); if (pData) { - if (pData && pData->meEventType == GestureEventPanType::Begin) + if (pData->meEventType == GestureEventPanType::Begin) { if (pHScrl) mpWindowImpl->mpFrameData->mnTouchPanPositionX = pHScrl->GetThumbPos(); if (pVScrl) mpWindowImpl->mpFrameData->mnTouchPanPositionY = pVScrl->GetThumbPos(); } - else if (pData && pData->meEventType == GestureEventPanType::Update) + else if (pData->meEventType == GestureEventPanType::Update) { bool bHorz = pData->meOrientation == PanningOrientation::Horizontal; Scrollable* pScrl = bHorz ? pHScrl : pVScrl;