mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:27:39 +00:00
VirGLDemo: Make a factory function for Demo and propagate errors
This removes a measly 1 FIXME :))
This commit is contained in:
parent
d4f74d6c48
commit
c4f68bde57
3 changed files with 13 additions and 4 deletions
|
@ -16,6 +16,7 @@ constexpr size_t DRAWTARGET_HEIGHT = 500;
|
|||
class Demo final : public GUI::Widget {
|
||||
C_OBJECT(Demo)
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<Demo>> create();
|
||||
virtual ~Demo() override;
|
||||
bool show_window_frame() const { return m_show_window_frame; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue