sw/source/core/text/itrform2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2e682faf5fccd932f57aafc8f50b4654811cdd91 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Oct 21 21:36:13 2018 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Oct 21 23:10:16 2018 +0200 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.kagan...@collabora.com> 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() ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits