summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-03-01 17:06:10 +0100
committerDavid Tardon <dtardon@redhat.com>2015-03-01 17:33:59 +0100
commitc6ad44c180667d27b79781e9cf0b6db0eb9053dd (patch)
treea85e17f7e3c2e550d8003eaa3170d405667faa83 /lingucomponent
parente133edad085699001619b55524c4c1ef0d587679 (diff)
initialize members
Change-Id: I907fdbb4ca12a25fbfa99c6fa345c3c07aea0833
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/languageguessing/guess.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx
index 63c11a54d813..9c16750a1f70 100644
--- a/lingucomponent/source/languageguessing/guess.cxx
+++ b/lingucomponent/source/languageguessing/guess.cxx
@@ -52,9 +52,10 @@ Guess::Guess()
*
*/
Guess::Guess(const char * guess_str)
+ : language_str(DEFAULT_LANGUAGE)
+ , country_str(DEFAULT_COUNTRY)
+ , encoding_str(DEFAULT_ENCODING)
{
- Guess();
-
string lang;
string country;
string enc;