tdf#163486: PVS: Expression can be simplified

Since
commit 8ab086b6cc
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date:   Mon Sep 18 16:07:07 2000 +0000

    initial import

V1065 	Expression can be simplified, check 'nRowCount' and similar operands.

Change-Id: Icd9cdd82cb083e2b40498a21de44a814169977ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176524
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-13 11:02:55 +01:00
parent 4444d13415
commit 5621b4b488

View file

@ -2260,7 +2260,7 @@ void BrowseBox::VisibleRowsChanged( sal_Int32, sal_uInt16 )
}
else if ( nRowCount > GetRowCount() )
{
RowRemoved(nRowCount-(nRowCount - GetRowCount()),nRowCount - GetRowCount(), false);
RowRemoved(GetRowCount(), nRowCount - GetRowCount(), false);
}
}