diff options
author | Kayo Hamid <kayo.hamid@gekkolinux.com.br> | 2011-04-22 23:40:55 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-04-26 15:25:15 +0100 |
commit | 774ab34f391efbc1728ff652e0b504466e084dd0 (patch) | |
tree | f3019f099871f95dd11222a58e201e53c0afb7d6 /lingucomponent | |
parent | 1ec8d2c26f05fd1e84603cf0188a42e17c4195c1 (diff) |
inefficient emptiness check
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 b4c37d490c74..53279f89ce6f 100644 --- a/lingucomponent/source/languageguessing/simpleguesser.cxx +++ b/lingucomponent/source/languageguessing/simpleguesser.cxx @@ -155,7 +155,7 @@ vector<Guess> SimpleGuesser::GuessLanguage(char* text) Guess SimpleGuesser::GuessPrimaryLanguage(char* text) { vector<Guess> ret = GuessLanguage(text); - if(ret.size() > 0){ + if(!ret.empty()){ return GuessLanguage(text)[0]; } else{ |