Revert "cppcheck is confused by an initializer list"

This reverts commit 2e1dbfc235.
This commit is contained in:
Gregory A Lundberg 2018-01-28 09:25:17 -06:00
parent 1d93797d34
commit 73be496708
No known key found for this signature in database
GPG key ID: 149484078AE8AE9E

View file

@ -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_;