mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
HackStudio: Convert ProjectTemplate::create_project to ErrorOr
This lets us also use the Core::System APIs, which reduces the amount of error checking code.
This commit is contained in:
parent
63c6eae918
commit
16543a1918
2 changed files with 11 additions and 22 deletions
|
@ -10,7 +10,6 @@
|
|||
#include <AK/ByteString.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/Weakable.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
|
||||
|
@ -24,7 +23,7 @@ public:
|
|||
|
||||
explicit ProjectTemplate(ByteString const& id, ByteString const& name, ByteString const& description, const GUI::Icon& icon, int priority);
|
||||
|
||||
Result<void, ByteString> create_project(ByteString const& name, ByteString const& path);
|
||||
ErrorOr<void> create_project(ByteString const& name, ByteString const& path);
|
||||
|
||||
ByteString const& id() const { return m_id; }
|
||||
ByteString const& name() const { return m_name; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue