mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 23:44:58 +00:00
LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject* is expected.
This commit is contained in:
parent
e9dda8d592
commit
fd5eb79d19
39 changed files with 88 additions and 86 deletions
|
@ -550,7 +550,7 @@ GMenu& GTableView::ensure_header_context_menu()
|
|||
// or if the column count/names change.
|
||||
if (!m_header_context_menu) {
|
||||
ASSERT(model());
|
||||
m_header_context_menu = make<GMenu>();
|
||||
m_header_context_menu = GMenu::construct();
|
||||
|
||||
for (int column = 0; column < model()->column_count(); ++column) {
|
||||
auto& column_data = this->column_data(column);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue