diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-26 22:34:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-27 12:34:25 +0100 |
commit | 602b63b0e4b81b416e8c2682750e97a20b74c7d9 (patch) | |
tree | 2a1e7d5cd9ef9af63292909fd87ca673fa24395f /lingucomponent/source | |
parent | fcd9b06ac744b1c709ab754a123bad64405dabc9 (diff) |
why call twice, we've already got the result
Diffstat (limited to 'lingucomponent/source')
-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 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(); } /** |