mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
Initialise members in the initialisation list.
Issue found by cppcheck.
This commit is contained in:
parent
f9de4968ed
commit
418db65857
@ -50,13 +50,12 @@ void callback_list_item_clicked(twidget* caller)
|
||||
tlistbox::tlistbox(const bool has_minimum, const bool has_maximum,
|
||||
const tgenerator_::tplacement placement, const bool select)
|
||||
: tscrollbar_container(2) // FIXME magic number
|
||||
, generator_(NULL)
|
||||
, generator_(
|
||||
tgenerator_::build(has_minimum, has_maximum, placement, select))
|
||||
, list_builder_(NULL)
|
||||
, callback_value_changed_(NULL)
|
||||
, need_layout_(false)
|
||||
{
|
||||
generator_ = tgenerator_::build(
|
||||
has_minimum, has_maximum, placement, select);
|
||||
}
|
||||
|
||||
void tlistbox::add_row(const string_map& item, const int index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user