diff options
author | Neil <nyamatongwe@gmail.com> | 2018-02-01 09:07:21 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-02-01 09:07:21 +1100 |
commit | 7d7d4e120999de66e4fc882f3d6224603ccb306f (patch) | |
tree | f684c46712831c1f4800bed37d9dd278645a8cd2 /src/RunStyles.cxx | |
parent | 592b3ac7cd3651ccc58376b5323e231b0834e34b (diff) | |
download | scintilla-mirror-7d7d4e120999de66e4fc882f3d6224603ccb306f.tar.gz |
Backport: Templatize Partitioning so it can hold different types.
Backport of changeset 6444:1bd57324aa36.
Diffstat (limited to 'src/RunStyles.cxx')
-rw-r--r-- | src/RunStyles.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index f6d3d413b..a365df6e9 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -70,7 +70,7 @@ void RunStyles::RemoveRunIfSameAsPrevious(int run) { } RunStyles::RunStyles() { - starts.reset(new Partitioning(8)); + starts.reset(new Partitioning<int>(8)); styles.reset(new SplitVector<int>()); styles->InsertValue(0, 2, 0); } @@ -196,7 +196,7 @@ void RunStyles::InsertSpace(int position, int insertLength) { } void RunStyles::DeleteAll() { - starts.reset(new Partitioning(8)); + starts.reset(new Partitioning<int>(8)); styles.reset(new SplitVector<int>()); styles->InsertValue(0, 2, 0); } |