From 60e87889d6438e386acf58c3967fb874af9aae82 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Jan 2020 21:22:02 -0500 Subject: Added Sci::make_unique() and Sci::size() for better compatibility with the default branch. std::make_unique() is c++14 and std::size() is c++17. --- src/Partitioning.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Partitioning.h') 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(growSize)); + body = Sci::make_unique>(growSize); stepPartition = 0; stepLength = 0; body->Insert(0, 0); // This value stays 0 for ever -- cgit v1.2.3