Make objects final

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

View File

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

View File

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

View File

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