summaryrefslogtreecommitdiff
path: root/lingucomponent/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-26 22:34:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-27 12:34:25 +0100
commit602b63b0e4b81b416e8c2682750e97a20b74c7d9 (patch)
tree2a1e7d5cd9ef9af63292909fd87ca673fa24395f /lingucomponent/source
parentfcd9b06ac744b1c709ab754a123bad64405dabc9 (diff)
why call twice, we've already got the result
Diffstat (limited to 'lingucomponent/source')
-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 0b8e59f7783c..5f18ebc01a7c 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.cxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.cxx
@@ -156,7 +156,7 @@ Guess SimpleGuesser::GuessPrimaryLanguage(const char* text)
{
vector<Guess> ret = GuessLanguage(text);
if (!ret.empty())
- return GuessLanguage(text)[0];
+ return ret[0];
return Guess();
}
/**