aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UniqueString.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-29 11:16:28 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-29 11:16:28 +1000
commite030b1d56785405cb35531758d603be88af9b487 (patch)
tree9a428393f7963d50a0b7557e7c77ac1be37c7bb3 /src/UniqueString.h
parent6e6641d4733903d3c365fd9348f3656ff7000ddf (diff)
downloadscintilla-mirror-e030b1d56785405cb35531758d603be88af9b487.tar.gz
Apply rule-of-zero to delete standard methods where possible as handled by
contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations.
Diffstat (limited to 'src/UniqueString.h')
-rw-r--r--src/UniqueString.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/UniqueString.h b/src/UniqueString.h
index 8d611992c..c5617e1c9 100644
--- a/src/UniqueString.h
+++ b/src/UniqueString.h
@@ -30,13 +30,6 @@ private:
std::vector<UniqueString> strings;
public:
UniqueStringSet();
- // UniqueStringSet objects can not be copied.
- UniqueStringSet(const UniqueStringSet &) = delete;
- UniqueStringSet &operator=(const UniqueStringSet &) = delete;
- // UniqueStringSet objects can be moved.
- UniqueStringSet(UniqueStringSet &&) = default;
- UniqueStringSet &operator=(UniqueStringSet &&) = default;
- ~UniqueStringSet() noexcept;
void Clear() noexcept;
const char *Save(const char *text);
};