summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-28 14:29:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-03-28 16:34:38 +0200
commitf891cecab59179efdb1e3153752f744db0a420ad (patch)
treee8cde139a941ff24f76c87846ba7dace6d1e9c41
parente889c9b8bfafec4c8aaaa9af899eb0c4df52d897 (diff)
-Werror,-Wunused-but-set-variable
...ever since cab1870e677f33a2501f15916110da46d3336d24 "INTEGRATION: CWS languageguessing: #i73173# integrate Google SoC language-guessing" Change-Id: I0abf783944499b6ac8015e37952013d05b273558 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132206 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--lingucomponent/source/languageguessing/simpleguesser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx
index 7b4d9f1119ad..7210b1f451e3 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.cxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.cxx
@@ -123,7 +123,7 @@ std::vector<Guess> SimpleGuesser::GuessLanguage(const char* text)
int current_pointer = 0;
- for(int i = 0; guess_list[current_pointer] != '\0'; i++)
+ while(guess_list[current_pointer] != '\0')
{
while (guess_list[current_pointer] != GUESS_SEPARATOR_OPEN && guess_list[current_pointer] != '\0')
current_pointer++;