diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-10-21 21:36:13 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-10-21 23:10:16 +0200 |
commit | 2e682faf5fccd932f57aafc8f50b4654811cdd91 (patch) | |
tree | a48fcd1da8b9c4af66615076508e8c505e5d0c85 /sw | |
parent | 7623f0f1afcdcb2ed63cea5220e10f7619ad53f1 (diff) |
tdf#120703 (PVS): redundant nullptr check
V668 There is no sense in testing the 'pPor' pointer against null, as the
memory was allocated using the 'new' operator. The exception will be
generated in the case of memory allocation error.
Change-Id: I58d553fc59606f54013246f23a1b18a4ab673aac
Reviewed-on: https://gerrit.libreoffice.org/62148
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/itrform2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx index dddeed9b40df..225bce5af04f 100644 --- a/sw/source/core/text/itrform2.cxx +++ b/sw/source/core/text/itrform2.cxx @@ -1387,7 +1387,7 @@ SwLinePortion *SwTextFormatter::NewPortion( SwTextFormatInfo &rInf ) // Special portions containing numbers (footnote anchor, footnote number, // numbering) can be contained in a rotated portion, if the user // choose a rotated character attribute. - if ( pPor && ! pMulti ) + if (!pMulti) { if ( pPor->IsFootnotePortion() ) { |