Make objects final

Might be a slight optimization
This commit is contained in:
2024-03-17 22:20:06 +01:00
parent e996e93431
commit 061e164c6a
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
#include "../Object.h"
/// Object representing a backup
class Archive : public Object {
class Archive final : public Object {
public:
Archive(Object::idType id, std::string name, unsigned long long mtime, std::vector<idType> files);

View File

@@ -11,7 +11,7 @@
#include "../Object.h"
/// Object representing a part of a File
class Chunk : public Object {
class Chunk final : public Object {
public:
Chunk(idType id, std::string, std::vector<char> data);

View File

@@ -15,7 +15,7 @@
#include "../Object.h"
/// Object representing a saved file
class File : public Object {
class File final : public Object {
public:
enum class Type { Normal, Symlink, Directory, END };