diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-03-16 13:15:15 -0600 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-17 00:51:36 -0700 |
commit | 190cf1507b88d25d04148d983d72a378035b05e9 (patch) | |
tree | a0aa522b2a47f022b3b791b14e3b6902f3df29d6 /Kernel/FileSystem/AnonymousFile.cpp | |
parent | 68f75ab98e4d8a7e48de48c2497a8395b79a4ba5 (diff) | |
download | serenity-190cf1507b88d25d04148d983d72a378035b05e9.zip |
Kernel: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
Diffstat (limited to 'Kernel/FileSystem/AnonymousFile.cpp')
-rw-r--r-- | Kernel/FileSystem/AnonymousFile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/FileSystem/AnonymousFile.cpp b/Kernel/FileSystem/AnonymousFile.cpp index b3e0a92b70..3e7955e972 100644 --- a/Kernel/FileSystem/AnonymousFile.cpp +++ b/Kernel/FileSystem/AnonymousFile.cpp @@ -15,9 +15,7 @@ AnonymousFile::AnonymousFile(NonnullRefPtr<Memory::AnonymousVMObject> vmobject) { } -AnonymousFile::~AnonymousFile() -{ -} +AnonymousFile::~AnonymousFile() = default; ErrorOr<Memory::Region*> AnonymousFile::mmap(Process& process, OpenFileDescription&, Memory::VirtualRange const& range, u64 offset, int prot, bool shared) { |