vcl/source/helper/strhelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 416f672b9da831b450da6be6f44ad0acff707bbe Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Oct 23 00:54:16 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Oct 23 10:02:36 2024 +0200 tdf#163486: PVS: Expression is always true V560 A part of conditional expression is always true: pRun != pEnd. V560 A part of conditional expression is always true: pRun != pEnd. Change-Id: I1a99ae31346177bed731e26e883720efa018bcbc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175451 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/helper/strhelper.cxx b/vcl/source/helper/strhelper.cxx index 9960f67e1008..6485a832841f 100644 --- a/vcl/source/helper/strhelper.cxx +++ b/vcl/source/helper/strhelper.cxx @@ -266,7 +266,7 @@ OUString WhitespaceToSpace( std::u16string_view rLine ) while( pRun != pEnd ) { - if( pRun != pEnd && isSpace( *pRun ) ) + if( isSpace( *pRun ) ) { *pLeap = ' '; pLeap++; @@ -326,7 +326,7 @@ OString WhitespaceToSpace(std::string_view rLine) while( pRun != pEnd ) { - if( pRun != pEnd && isSpace( *pRun ) ) + if( isSpace( *pRun ) ) { *pLeap = ' '; pLeap++;