aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ContractionState.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-02-01 09:22:14 +1100
committerNeil <nyamatongwe@gmail.com>2018-02-01 09:22:14 +1100
commit391226f67e1260eb77e7d3122d43281aa6ccd5ab (patch)
tree607ed69e2d8b8e4fa2882132a5290df6aff68357 /src/ContractionState.cxx
parent7d7d4e120999de66e4fc882f3d6224603ccb306f (diff)
downloadscintilla-mirror-391226f67e1260eb77e7d3122d43281aa6ccd5ab.tar.gz
Backport: Templatize RunStyles so it can be over ranges of different types and contain different style types.
Currently only instantiated over <int, int>. Backport of changeset 6445:89d992f380a1.
Diffstat (limited to 'src/ContractionState.cxx')
-rw-r--r--src/ContractionState.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx
index a9db134bc..8777e4af9 100644
--- a/src/ContractionState.cxx
+++ b/src/ContractionState.cxx
@@ -35,9 +35,9 @@ ContractionState::~ContractionState() {
void ContractionState::EnsureData() {
if (OneToOne()) {
- visible.reset(new RunStyles());
- expanded.reset(new RunStyles());
- heights.reset(new RunStyles());
+ visible.reset(new RunStyles<int, int>());
+ expanded.reset(new RunStyles<int, int>());
+ heights.reset(new RunStyles<int, int>());
foldDisplayTexts.reset(new SparseVector<UniqueString>());
displayLines.reset(new Partitioning<int>(4));
InsertLines(0, linesInDocument);