mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
Kernel: Rename Space::create => Space::try_create()
This commit is contained in:
parent
8f6bc7fd10
commit
a085168c52
4 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
OwnPtr<Space> Space::create(Process& process, const Space* parent)
|
||||
OwnPtr<Space> Space::try_create(Process& process, Space const* parent)
|
||||
{
|
||||
auto page_directory = PageDirectory::create_for_userspace(parent ? &parent->page_directory().range_allocator() : nullptr);
|
||||
if (!page_directory)
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Kernel {
|
|||
|
||||
class Space {
|
||||
public:
|
||||
static OwnPtr<Space> create(Process&, const Space* parent);
|
||||
static OwnPtr<Space> try_create(Process&, Space const* parent);
|
||||
~Space();
|
||||
|
||||
PageDirectory& page_directory() { return *m_page_directory; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue