storage/Interface: explicitly delete copy constructors

This commit is contained in:
Max Kellermann 2014-02-05 19:30:58 +01:00
parent c8c3f20840
commit e3e3053f32
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,8 @@ class AllocatedPath;
class StorageDirectoryReader { class StorageDirectoryReader {
public: public:
StorageDirectoryReader() = default;
StorageDirectoryReader(const StorageDirectoryReader &) = delete;
virtual ~StorageDirectoryReader() {} virtual ~StorageDirectoryReader() {}
virtual const char *Read() = 0; virtual const char *Read() = 0;
@ -39,6 +41,8 @@ public:
class Storage { class Storage {
public: public:
Storage() = default;
Storage(const Storage &) = delete;
virtual ~Storage() {} virtual ~Storage() {}
virtual bool GetInfo(const char *uri_utf8, bool follow, FileInfo &info, virtual bool GetInfo(const char *uri_utf8, bool follow, FileInfo &info,

View File

@ -56,8 +56,6 @@ public:
LocalStorage(const char *_base_utf8, Path _base_fs) LocalStorage(const char *_base_utf8, Path _base_fs)
:base_utf8(_base_utf8), base_fs(_base_fs) {} :base_utf8(_base_utf8), base_fs(_base_fs) {}
LocalStorage(const LocalStorage &) = delete;
/* virtual methods from class Storage */ /* virtual methods from class Storage */
virtual bool GetInfo(const char *uri_utf8, bool follow, FileInfo &info, virtual bool GetInfo(const char *uri_utf8, bool follow, FileInfo &info,
Error &error) override; Error &error) override;