summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorKayo Hamid <kayo.hamid@gekkolinux.com.br>2011-04-22 23:40:55 -0400
committerMichael Meeks <michael.meeks@novell.com>2011-04-26 15:25:15 +0100
commit774ab34f391efbc1728ff652e0b504466e084dd0 (patch)
treef3019f099871f95dd11222a58e201e53c0afb7d6 /lingucomponent
parent1ec8d2c26f05fd1e84603cf0188a42e17c4195c1 (diff)
inefficient emptiness check
Diffstat (limited to 'lingucomponent')
-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 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{