codemaker/source/codemaker/global.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8dc236124ab6f441853d4b23dd0154da9ca0da74 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Oct 20 19:24:45 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Oct 21 17:08:48 2018 +0200 pvs-studio: The condition 'nIndex != - 1' of loop is always true Change-Id: I5b74d8ac2701adbd63816360812687201f645c39 Reviewed-on: https://gerrit.libreoffice.org/62097 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx index e9a9b8f415c1..5b95332c1007 100644 --- a/codemaker/source/codemaker/global.cxx +++ b/codemaker/source/codemaker/global.cxx @@ -135,7 +135,7 @@ OString createFileNameFromType( const OString& destination, } buffer.append(token); - } while( nIndex != -1 ); + } while(true); OUString uSysFileName; OSL_VERIFY( FileBase::getSystemPathFromFileURL( _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits