From 69f3505ba3066c23024dc6bb6878a339474581bf Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 1 Mar 2018 09:55:25 +1100 Subject: Use make_unique in preference to new. From Effective Modern C++ Item 21. --- src/Partitioning.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Partitioning.h') diff --git a/src/Partitioning.h b/src/Partitioning.h index 112a543ca..57c8656c8 100644 --- a/src/Partitioning.h +++ b/src/Partitioning.h @@ -83,7 +83,7 @@ private: } void Allocate(ptrdiff_t growSize) { - body.reset(new SplitVectorWithRangeAdd(growSize)); + body = std::make_unique>(growSize); stepPartition = 0; stepLength = 0; body->Insert(0, 0); // This value stays 0 for ever -- cgit v1.2.3