kernel/slab: Use final keyword.

This commit is contained in:
Augustin Cavalier
2024-11-04 16:07:49 -05:00
parent a2694db751
commit 02857568c9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ struct HashedSlab : slab {
}; };
struct HashedObjectCache : ObjectCache { struct HashedObjectCache final : ObjectCache {
HashedObjectCache(); HashedObjectCache();
static HashedObjectCache* Create(const char* name, size_t object_size, static HashedObjectCache* Create(const char* name, size_t object_size,
+1 -1
View File
@@ -11,7 +11,7 @@
#include "ObjectCache.h" #include "ObjectCache.h"
struct SmallObjectCache : ObjectCache { struct SmallObjectCache final : ObjectCache {
static SmallObjectCache* Create(const char* name, size_t object_size, static SmallObjectCache* Create(const char* name, size_t object_size,
size_t alignment, size_t maximum, size_t alignment, size_t maximum,
size_t magazineCapacity, size_t magazineCapacity,