mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:37:35 +00:00
SystemMonitor: Unbreak after ObjectPtr<GWidget> changes
This commit is contained in:
parent
bdf23a3d23
commit
0c4508c00d
1 changed files with 6 additions and 6 deletions
|
@ -39,9 +39,9 @@ static String human_readable_size(u32 size)
|
||||||
return String::format("%u GB", size / GB);
|
return String::format("%u GB", size / GB);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GWidget* build_file_systems_tab();
|
static ObjectPtr<GWidget> build_file_systems_tab();
|
||||||
static GWidget* build_pci_devices_tab();
|
static ObjectPtr<GWidget> build_pci_devices_tab();
|
||||||
static GWidget* build_devices_tab();
|
static ObjectPtr<GWidget> build_devices_tab();
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
@ -234,7 +234,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
GWidget* build_file_systems_tab()
|
ObjectPtr<GWidget> build_file_systems_tab()
|
||||||
{
|
{
|
||||||
auto fs_widget = GWidget::construct();
|
auto fs_widget = GWidget::construct();
|
||||||
fs_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
fs_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||||
|
@ -299,7 +299,7 @@ GWidget* build_file_systems_tab()
|
||||||
return fs_widget;
|
return fs_widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
GWidget* build_pci_devices_tab()
|
ObjectPtr<GWidget> build_pci_devices_tab()
|
||||||
{
|
{
|
||||||
auto pci_widget = GWidget::construct(nullptr);
|
auto pci_widget = GWidget::construct(nullptr);
|
||||||
pci_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
pci_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||||
|
@ -353,7 +353,7 @@ GWidget* build_pci_devices_tab()
|
||||||
return pci_widget;
|
return pci_widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
GWidget* build_devices_tab()
|
ObjectPtr<GWidget> build_devices_tab()
|
||||||
{
|
{
|
||||||
auto devices_widget = GWidget::construct();
|
auto devices_widget = GWidget::construct();
|
||||||
devices_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
devices_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue