diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:06 +0200 |
commit | cde4d4a208ea8e19d13385efbcedfc0f65f74ac0 (patch) | |
tree | eaa9628b59321b5e6a0c17302ba860258858ff10 /lingucomponent | |
parent | 7b8f64cfecf0eac97bca3146302394fd93af4bd8 (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: Ic494c8e3b072adceca984a3ceec02088ac08e880
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/languageguessing/guess.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx index 33fe2c37bf24..fa1e6f62b804 100644 --- a/lingucomponent/source/languageguessing/guess.cxx +++ b/lingucomponent/source/languageguessing/guess.cxx @@ -61,9 +61,9 @@ Guess::Guess(const char * guess_str) string enc; //if the guess is not like "UNKNOWN" or "SHORT", go into the brackets - if(strcmp((const char*)(guess_str + 1), TEXTCAT_RESULT_UNKNOWN_STR) != 0 + if(strcmp(guess_str + 1, TEXTCAT_RESULT_UNKNOWN_STR) != 0 && - strcmp((const char*)(guess_str + 1), TEXTCAT_RESULT_SHORT_STR) != 0) + strcmp(guess_str + 1, TEXTCAT_RESULT_SHORT_STR) != 0) { int current_pointer = 0; |