mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 19:19:40 +00:00
Revert "cppcheck is confused by an initializer list"
This reverts commit 2e1dbfc235334117c61c7a4bbb4ff1d1f76e2a2d.
This commit is contained in:
parent
1d93797d34
commit
73be496708
@ -472,11 +472,10 @@ public:
|
||||
side);
|
||||
}
|
||||
// Expand initially selected node
|
||||
callbacks[initially_selected_node](find_widget<tree_view>(&window, "stuff_list", false).get_root_node().get_child_at(0));
|
||||
callbacks[{0}](find_widget<tree_view>(&window, "stuff_list", false).get_root_node().get_child_at(0));
|
||||
}
|
||||
|
||||
private:
|
||||
static const std::vector<int> initially_selected_node;
|
||||
model& model_;
|
||||
view& view_;
|
||||
using node_callback = std::function<void(tree_view_node&)>;
|
||||
@ -487,7 +486,6 @@ private:
|
||||
const game_events::manager& events_;
|
||||
const display_context& dc_;
|
||||
};
|
||||
const std::vector<int> gamestate_inspector::controller::initially_selected_node = std::vector<int>({0});
|
||||
|
||||
gamestate_inspector::model& single_mode_controller::model() {
|
||||
return c.model_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user