summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-20 19:24:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-21 17:08:48 +0200
commit8dc236124ab6f441853d4b23dd0154da9ca0da74 (patch)
tree6e3de13983a6deb72946213ec0e0386e21b96a3c /codemaker
parent4219853f7344987cc8ebdf20860038222a1883dc (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/codemaker/global.cxx2
1 files changed, 1 insertions, 1 deletions
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(