mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 17:37:47 +01:00
Make objects final
Might be a slight optimization
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user