AK: Add Retained<T>, like RetainPtr, but never null.

Also use some Clang attribute wizardry to get a warning for use-after-move.
This commit is contained in:
Andreas Kling
2019-02-25 12:43:52 +01:00
parent 0b957ed2b1
commit 2cfcbdc735
31 changed files with 214 additions and 104 deletions

View File

@@ -166,7 +166,7 @@ ProcFS& ProcFS::the()
return *s_the;
}
RetainPtr<ProcFS> ProcFS::create()
Retained<ProcFS> ProcFS::create()
{
return adopt(*new ProcFS);
}