diff --git a/src/cache.h b/src/cache.h index e68a35c..b0334a8 100644 --- a/src/cache.h +++ b/src/cache.h @@ -104,6 +104,10 @@ class StatCache private: StatCache(); ~StatCache(); + StatCache(const StatCache&) = delete; + StatCache(StatCache&&) = delete; + StatCache& operator=(const StatCache&) = delete; + StatCache& operator=(StatCache&&) = delete; void Clear(); bool GetStat(const std::string& key, struct stat* pst, headers_t* meta, bool overcheck, const char* petag, bool* pisforce); diff --git a/src/curl_multi.h b/src/curl_multi.h index 604f0b1..362df63 100644 --- a/src/curl_multi.h +++ b/src/curl_multi.h @@ -65,6 +65,10 @@ class S3fsMultiCurl public: explicit S3fsMultiCurl(int maxParallelism, bool not_abort = false); ~S3fsMultiCurl(); + S3fsMultiCurl(const S3fsMultiCurl&) = delete; + S3fsMultiCurl(S3fsMultiCurl&&) = delete; + S3fsMultiCurl& operator=(const S3fsMultiCurl&) = delete; + S3fsMultiCurl& operator=(S3fsMultiCurl&&) = delete; int GetMaxParallelism() const { return maxParallelism; } diff --git a/src/fdcache.h b/src/fdcache.h index 0880f10..6df4051 100644 --- a/src/fdcache.h +++ b/src/fdcache.h @@ -58,6 +58,10 @@ class FdManager public: FdManager(); ~FdManager(); + FdManager(const FdManager&) = delete; + FdManager(FdManager&&) = delete; + FdManager& operator=(const FdManager&) = delete; + FdManager& operator=(FdManager&&) = delete; // Reference singleton static FdManager* get() { return &singleton; } diff --git a/src/fdcache_page.h b/src/fdcache_page.h index f4ef8c2..aae5d5e 100644 --- a/src/fdcache_page.h +++ b/src/fdcache_page.h @@ -99,7 +99,9 @@ class PageList explicit PageList(off_t size = 0, bool is_loaded = false, bool is_modified = false, bool shrinked = false); PageList(const PageList&) = delete; + PageList(PageList&&) = delete; PageList& operator=(const PageList&) = delete; + PageList& operator=(PageList&&) = delete; ~PageList(); bool Init(off_t size, bool is_loaded, bool is_modified); diff --git a/src/fdcache_stat.h b/src/fdcache_stat.h index 3ad476b..8134166 100644 --- a/src/fdcache_stat.h +++ b/src/fdcache_stat.h @@ -46,6 +46,10 @@ class CacheFileStat explicit CacheFileStat(const char* tpath = nullptr); ~CacheFileStat(); + CacheFileStat(const CacheFileStat&) = delete; + CacheFileStat(CacheFileStat&&) = delete; + CacheFileStat& operator=(const CacheFileStat&) = delete; + CacheFileStat& operator=(CacheFileStat&&) = delete; bool Open(); bool ReadOnlyOpen();