mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
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:
parent
6879465725
commit
8825abe7ed
6 changed files with 439 additions and 320 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue