diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 16:36:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-20 19:52:26 +0200 |
commit | 014dec7fea06189d79c635e8df35e1f48edf7ef5 (patch) | |
tree | 5a87ec76d1aaec99f7230dd3f34475f3236dc4d7 /xmloff | |
parent | cdf8d7a1d88865b26cab11f01cc6307a4033f1dd (diff) |
pvs-studio: rework expression
Change-Id: Ibcbeef3eba53df790c1860e6e4066de67bdda0bc
Reviewed-on: https://gerrit.libreoffice.org/62057
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 95a3e89c6f2d..4d1d196189ed 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -654,7 +654,7 @@ void XMLTextParagraphExport::Add( sal_uInt16 nFamily, ; // section styles have no parents break; } - if( (aPropStates.size() - nIgnoreProps) > 0 ) + if (aPropStates.size() - nIgnoreProps) { GetAutoStylePool().Add( nFamily, sParent, aPropStates, bDontSeek ); if( !sCondParent.isEmpty() && sParent != sCondParent ) @@ -848,7 +848,7 @@ OUString XMLTextParagraphExport::FindTextStyleAndHyperlink( ppAddStates++; } } - if( (aPropStates.size() - nIgnoreProps) > 0 ) + if (aPropStates.size() - nIgnoreProps) { // erase the character style, otherwise the autostyle cannot be found! // erase the hyperlink, otherwise the autostyle cannot be found! |