Help: Convert to GML and propagate more errors

Converts Help's layout to GML, propagates model and icon creation
errors, and switches to the MainWidget-namespace organization
pattern seen in more up-to-date apps like TextEditor to make things
easier to maintain going forward.
This commit is contained in:
thankyouverycool 2022-02-28 11:05:35 -05:00 committed by Andreas Kling
commit 8825abe7ed
Notes: sideshowbarker 2024-07-17 18:01:19 +09:00
6 changed files with 439 additions and 320 deletions

View file

@ -14,9 +14,9 @@
class ManualModel final : public GUI::Model {
public:
static NonnullRefPtr<ManualModel> create()
static ErrorOr<NonnullRefPtr<ManualModel>> create()
{
return adopt_ref(*new ManualModel);
return adopt_nonnull_ref_or_enomem(new (nothrow) ManualModel);
}
virtual ~ManualModel() override {};