mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
SystemMonitor: Remove all remaining naked "new" usage
This commit is contained in:
parent
f4b51a63ec
commit
f57cc5873c
7 changed files with 23 additions and 16 deletions
|
@ -2,8 +2,8 @@
|
|||
#include <LibGUI/GFrame.h>
|
||||
|
||||
class GraphWidget final : public GFrame {
|
||||
C_OBJECT(GraphWidget)
|
||||
public:
|
||||
explicit GraphWidget(GWidget* parent);
|
||||
virtual ~GraphWidget() override;
|
||||
|
||||
void set_max(int max) { m_max = max; }
|
||||
|
@ -15,6 +15,8 @@ public:
|
|||
Function<String(int value, int max)> text_formatter;
|
||||
|
||||
private:
|
||||
explicit GraphWidget(GWidget* parent);
|
||||
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
int m_max { 100 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue