mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:37:35 +00:00
Userland: Port to automatic GML initializer where possible
This commit is contained in:
parent
dec066fa5c
commit
adc845e0cb
41 changed files with 148 additions and 245 deletions
|
@ -20,7 +20,8 @@ namespace Calculator {
|
|||
class CalculatorWidget final : public GUI::Widget {
|
||||
C_OBJECT(CalculatorWidget)
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<CalculatorWidget>> create();
|
||||
static ErrorOr<NonnullRefPtr<CalculatorWidget>> try_create();
|
||||
ErrorOr<void> initialize();
|
||||
|
||||
virtual ~CalculatorWidget() override = default;
|
||||
String get_entry();
|
||||
|
@ -34,7 +35,6 @@ public:
|
|||
void set_rounding_custom(GUI::Action& action, StringView);
|
||||
|
||||
private:
|
||||
static ErrorOr<NonnullRefPtr<CalculatorWidget>> try_create();
|
||||
CalculatorWidget() = default;
|
||||
|
||||
void add_operation_button(GUI::Button&, Calculator::Operation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue