diff options
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/languageguessing/simpleguesser.cxx | 2 |
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++; |