summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-03-01 17:06:38 +0100
committerDavid Tardon <dtardon@redhat.com>2015-03-01 17:33:59 +0100
commit79143802420796074cebc07d133f75458205bd1a (patch)
treea1372d820517f13ef795f8a43c4dceb659217617 /lingucomponent
parentc6ad44c180667d27b79781e9cf0b6db0eb9053dd (diff)
use initializer list here too
Change-Id: I30e4374dc44a58cb1b7315e3d7bfbed99c77030a
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/languageguessing/guess.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx
index 9c16750a1f70..833d6032f5d4 100644
--- a/lingucomponent/source/languageguessing/guess.cxx
+++ b/lingucomponent/source/languageguessing/guess.cxx
@@ -40,10 +40,10 @@
using namespace std;
Guess::Guess()
+ : language_str(DEFAULT_LANGUAGE)
+ , country_str(DEFAULT_COUNTRY)
+ , encoding_str(DEFAULT_ENCODING)
{
- language_str = DEFAULT_LANGUAGE;
- country_str = DEFAULT_COUNTRY;
- encoding_str = DEFAULT_ENCODING;
}
/*