diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:13:04 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:13:33 +0200 |
commit | 83b5f6c11a7bd3da5c771b2182b4096e23a75287 (patch) | |
tree | b7f8666eddec52c33ad1c2462efb2b03be5d3af7 /Applications/SystemMonitor/main.cpp | |
parent | 4f4438c04c8cd5d52e367d1fda65b469c72c75c4 (diff) | |
download | serenity-83b5f6c11a7bd3da5c771b2182b4096e23a75287.zip |
LibGUI: Convert GGroupBox to ObjectPtr
Diffstat (limited to 'Applications/SystemMonitor/main.cpp')
-rw-r--r-- | Applications/SystemMonitor/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 587812a1d2..964232e0fe 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -66,7 +66,7 @@ int main(int argc, char** argv) graphs_container->set_layout(make<GBoxLayout>(Orientation::Vertical)); graphs_container->layout()->set_margins({ 4, 4, 4, 4 }); - auto* cpu_graph_group_box = new GGroupBox("CPU usage", graphs_container); + auto cpu_graph_group_box = GGroupBox::construct("CPU usage", graphs_container); cpu_graph_group_box->set_layout(make<GBoxLayout>(Orientation::Vertical)); cpu_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 }); cpu_graph_group_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); @@ -79,7 +79,7 @@ int main(int argc, char** argv) return String::format("%d%%", value); }; - auto* memory_graph_group_box = new GGroupBox("Memory usage", graphs_container); + auto memory_graph_group_box = GGroupBox::construct("Memory usage", graphs_container); memory_graph_group_box->set_layout(make<GBoxLayout>(Orientation::Vertical)); memory_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 }); memory_graph_group_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); |