mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
Kernel: Port File to RefCounted
Since RefCounted automatically calls a method named `will_be_destoyed` on classes that have one, so there's no need to have a custom implementation of unref in File.
This commit is contained in:
parent
4a3a947df3
commit
6e2a82df13
3 changed files with 2 additions and 12 deletions
|
@ -71,10 +71,9 @@ public:
|
|||
// - Should create a Region in the Process and return it if successful.
|
||||
|
||||
class File
|
||||
: public RefCountedBase
|
||||
: public RefCounted<File>
|
||||
, public Weakable<File> {
|
||||
public:
|
||||
virtual bool unref() const;
|
||||
virtual void will_be_destroyed() { }
|
||||
virtual ~File();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue