aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authormitchell <unknown>2020-01-05 21:22:02 -0500
committermitchell <unknown>2020-01-05 21:22:02 -0500
commit60e87889d6438e386acf58c3967fb874af9aae82 (patch)
tree9c5c2660c59aff04ddedea19fa03fd271f8bba5c /src/Document.cxx
parentdbb7374c185718655dd77c294eb281e8b93c538e (diff)
downloadscintilla-mirror-60e87889d6438e386acf58c3967fb874af9aae82.tar.gz
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.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 43751a716..b889a7d9b 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -135,11 +135,11 @@ Document::Document(int options) :
matchesValid = false;
- perLineData[ldMarkers].reset(new LineMarkers());
- perLineData[ldLevels].reset(new LineLevels());
- perLineData[ldState].reset(new LineState());
- perLineData[ldMargin].reset(new LineAnnotation());
- perLineData[ldAnnotation].reset(new LineAnnotation());
+ perLineData[ldMarkers] = Sci::make_unique<LineMarkers>();
+ perLineData[ldLevels] = Sci::make_unique<LineLevels>();
+ perLineData[ldState] = Sci::make_unique<LineState>();
+ perLineData[ldMargin] = Sci::make_unique<LineAnnotation>();
+ perLineData[ldAnnotation] = Sci::make_unique<LineAnnotation>();
decorations = DecorationListCreate(IsLarge());