summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbatabstops.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-02-07 14:40:49 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-02-11 07:08:08 +0100
commit3165146f6deef86eb408837275ec3f7edda0183b (patch)
treeca899778648ab35eccfd6b520629b293db83ceeb /sw/source/ui/vba/vbatabstops.cxx
parent774cc7e0930f223fded1a774e0b71e6b68d48f5f (diff)
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I62cb3b8927d664b3d5359ee6ac7db30d354f4821 Reviewed-on: https://gerrit.libreoffice.org/67496 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/ui/vba/vbatabstops.cxx')
-rw-r--r--sw/source/ui/vba/vbatabstops.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx
index 0c2ee09dea33..2f18e784dcb8 100644
--- a/sw/source/ui/vba/vbatabstops.cxx
+++ b/sw/source/ui/vba/vbatabstops.cxx
@@ -207,7 +207,7 @@ uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, co
style::TabStop* pOldTab = aOldTabs.getArray();
style::TabStop* pNewTab = aNewTabs.getArray();
pNewTab[0] = aTab;
- for( sal_Int32 nIndex = 0; nIndex < nTabs && !bOverWriter; nIndex++ )
+ for (sal_Int32 nIndex = 0; nIndex < nTabs; nIndex++)
{
if( pOldTab[nIndex].Position == nPosition )
{