diff options
Diffstat (limited to 'src/Partitioning.h')
| -rw-r--r-- | src/Partitioning.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h index 06dc88ade..bb3320b80 100644 --- a/src/Partitioning.h +++ b/src/Partitioning.h @@ -8,6 +8,8 @@ #ifndef PARTITIONING_H #define PARTITIONING_H +#include "Compat.h" + namespace Scintilla { /// A split vector of integers with a method for adding a value to all elements @@ -85,7 +87,7 @@ private: } void Allocate(ptrdiff_t growSize) { - body.reset(new SplitVectorWithRangeAdd<T>(growSize)); + body = Sci::make_unique<SplitVectorWithRangeAdd<T>>(growSize); stepPartition = 0; stepLength = 0; body->Insert(0, 0); // This value stays 0 for ever |
