summaryrefslogtreecommitdiff
path: root/Kernel/VM/Region.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-21 18:37:47 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-21 18:37:47 +0200
commit90b1354688e988ba1311a5645f631d353fa7ff80 (patch)
tree5619e16c34d3f2f9142c270e2a906614a6d598a6 /Kernel/VM/Region.h
parent77b9fa89dd36fcd56d956667a956ef7f2ee8f963 (diff)
downloadserenity-90b1354688e988ba1311a5645f631d353fa7ff80.zip
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
Diffstat (limited to 'Kernel/VM/Region.h')
-rw-r--r--Kernel/VM/Region.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h
index 1e0d374b17..9079280d2f 100644
--- a/Kernel/VM/Region.h
+++ b/Kernel/VM/Region.h
@@ -19,8 +19,8 @@ public:
};
Region(const Range&, const String&, byte access, bool cow = false);
- Region(const Range&, Retained<VMObject>&&, size_t offset_in_vmo, const String&, byte access, bool cow = false);
- Region(const Range&, RetainPtr<Inode>&&, const String&, byte access);
+ Region(const Range&, NonnullRefPtr<VMObject>&&, size_t offset_in_vmo, const String&, byte access, bool cow = false);
+ Region(const Range&, RefPtr<Inode>&&, const String&, byte access);
~Region();
VirtualAddress vaddr() const { return m_range.base(); }
@@ -38,7 +38,7 @@ public:
bool is_shared() const { return m_shared; }
void set_shared(bool shared) { m_shared = shared; }
- Retained<Region> clone();
+ NonnullRefPtr<Region> clone();
bool contains(VirtualAddress vaddr) const
{
@@ -97,10 +97,10 @@ public:
}
private:
- RetainPtr<PageDirectory> m_page_directory;
+ RefPtr<PageDirectory> m_page_directory;
Range m_range;
size_t m_offset_in_vmo { 0 };
- Retained<VMObject> m_vmo;
+ NonnullRefPtr<VMObject> m_vmo;
String m_name;
byte m_access { 0 };
bool m_shared { false };