diff options
author | Neil <nyamatongwe@gmail.com> | 2018-03-01 09:55:25 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-03-01 09:55:25 +1100 |
commit | 69f3505ba3066c23024dc6bb6878a339474581bf (patch) | |
tree | d1c11379b0b7bac940ba06c749a629703980c292 /src/EditView.cxx | |
parent | 3ed7408fb4c322183249afc7f0fce3b9f5de1cf1 (diff) | |
download | scintilla-mirror-69f3505ba3066c23024dc6bb6878a339474581bf.tar.gz |
Use make_unique in preference to new.
From Effective Modern C++ Item 21.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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>(); } LineTabstops *lt = static_cast<LineTabstops *>(ldTabstops.get()); return lt && lt->AddTabstop(line, x); |