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