Make sure all members are initialized in the constructor.
This commit is contained in:
parent
085a6a1ef6
commit
04852654d1
1 changed files with 11 additions and 2 deletions
|
@ -29,10 +29,19 @@ class config;
|
|||
|
||||
struct language_def
|
||||
{
|
||||
language_def() {}
|
||||
language_def() :
|
||||
localename(),
|
||||
alternates(),
|
||||
language(),
|
||||
rtl(false)
|
||||
{}
|
||||
|
||||
language_def(const std::string& name, const t_string& lang, const std::string& dir,
|
||||
const std::string &salternates = "") :
|
||||
localename(name), language(lang), rtl(dir == "rtl")
|
||||
localename(name),
|
||||
alternates(),
|
||||
language(lang),
|
||||
rtl(dir == "rtl")
|
||||
{
|
||||
alternates = utils::split(salternates);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue