diff options
author | Neil <nyamatongwe@gmail.com> | 2022-07-29 10:16:34 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-07-29 10:16:34 +1000 |
commit | cb3ef02e9c483596f3c146bc72325457e61d0b19 (patch) | |
tree | ef80dee71ea9af538e7bf7ec4bc8ac1592a506ea /src/SplitVector.h | |
parent | 5218b62655b877af64f9980efa668a1dcb82ed43 (diff) | |
download | scintilla-mirror-cb3ef02e9c483596f3c146bc72325457e61d0b19.tar.gz |
Flatten Partitioning and RunStyles to avoid a level of indirection by containing
SplitVector and Partitioning directly instead of using std::unique_ptr.
This will enable more value semantics and reduces potential memory allocation
failure scenarios.
Diffstat (limited to 'src/SplitVector.h')
-rw-r--r-- | src/SplitVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index d0823b0b6..6c5514a22 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -77,8 +77,8 @@ public: // Deleted so SplitVector objects can not be copied. SplitVector(const SplitVector &) = delete; SplitVector(SplitVector &&) = delete; - void operator=(const SplitVector &) = delete; - void operator=(SplitVector &&) = delete; + SplitVector &operator=(const SplitVector &) = delete; + SplitVector &operator=(SplitVector &&) = default; ~SplitVector() { } |