diff options
author | Hal Canary <halcanary@google.com> | 2018-06-15 20:27:52 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-21 16:37:32 +0000 |
commit | 51382998dc5a0e48ebc1c4b2047db6ad8b34bbdf (patch) | |
tree | b022c70e0c383198289688dd96b7832696383c07 /include/private | |
parent | 37b6109cde2b50d366d5f6ac38cc1c043081230d (diff) |
Mark all deleted methods private
Change-Id: I33f51efeaeabcdd7add2a88d89ecc9c1e8c054d7
Reviewed-on: https://skia-review.googlesource.com/135380
Auto-Submit: Hal Canary <halcanary@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/SkTHash.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/private/SkTHash.h b/include/private/SkTHash.h index 06e63a2113..43234c5fe4 100644 --- a/include/private/SkTHash.h +++ b/include/private/SkTHash.h @@ -39,9 +39,6 @@ public: return *this; } - SkTHashTable(const SkTHashTable&) = delete; - SkTHashTable& operator=(const SkTHashTable&) = delete; - // Clear the table. void reset() { *this = SkTHashTable(); } @@ -227,6 +224,9 @@ private: int fCount, fCapacity; SkAutoTArray<Slot> fSlots; + + SkTHashTable(const SkTHashTable&) = delete; + SkTHashTable& operator=(const SkTHashTable&) = delete; }; // Maps K->V. A more user-friendly wrapper around SkTHashTable, suitable for most use cases. @@ -236,9 +236,7 @@ class SkTHashMap { public: SkTHashMap() {} SkTHashMap(SkTHashMap&&) = default; - SkTHashMap(const SkTHashMap&) = delete; SkTHashMap& operator=(SkTHashMap&&) = default; - SkTHashMap& operator=(const SkTHashMap&) = delete; // Clear the map. void reset() { fTable.reset(); } @@ -294,6 +292,9 @@ private: }; SkTHashTable<Pair, K> fTable; + + SkTHashMap(const SkTHashMap&) = delete; + SkTHashMap& operator=(const SkTHashMap&) = delete; }; // A set of T. T is treated as an ordinary copyable C++ type. @@ -302,9 +303,7 @@ class SkTHashSet { public: SkTHashSet() {} SkTHashSet(SkTHashSet&&) = default; - SkTHashSet(const SkTHashSet&) = delete; SkTHashSet& operator=(SkTHashSet&&) = default; - SkTHashSet& operator=(const SkTHashSet&) = delete; // Clear the set. void reset() { fTable.reset(); } @@ -343,6 +342,9 @@ private: static uint32_t Hash(const T& item) { return HashT()(item); } }; SkTHashTable<T, T, Traits> fTable; + + SkTHashSet(const SkTHashSet&) = delete; + SkTHashSet& operator=(const SkTHashSet&) = delete; }; #endif//SkTHash_DEFINED |