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/EditView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/EditView.cxx') diff --git a/src/EditView.cxx b/src/EditView.cxx index 8db21d5d9..d4cdf4dc8 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -227,7 +227,7 @@ bool EditView::ClearTabstops(Sci::Line line) { bool EditView::AddTabstop(Sci::Line line, int x) { if (!ldTabstops) { - ldTabstops.reset(new LineTabstops()); + ldTabstops = std::make_unique(); } LineTabstops *lt = static_cast(ldTabstops.get()); return lt && lt->AddTabstop(line, x); -- cgit v1.2.3