summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/inc/docary.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index c3c4724ab505..5c92a68d1c31 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -110,6 +110,14 @@ public:
delete *it;
}
+ //TODO: These functions are apparently brittle (but the copy functions are actually used by the
+ // code; the move functions will be implicitly-defined as deleted anyway) and should probably
+ // only be used with DestructorPolicy::KeepELements:
+ SwVectorModifyBase(SwVectorModifyBase const &) = default;
+ SwVectorModifyBase(SwVectorModifyBase &&) = default;
+ SwVectorModifyBase & operator =(SwVectorModifyBase const &) = default;
+ SwVectorModifyBase & operator =(SwVectorModifyBase &&) = default;
+
void DeleteAndDestroy(int aStartIdx, int aEndIdx)
{
if (aEndIdx < aStartIdx)