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/SparseVector.h | |
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/SparseVector.h')
-rw-r--r-- | src/SparseVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SparseVector.h b/src/SparseVector.h index f42194f26..0f9f4ad1c 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -15,7 +15,7 @@ namespace Scintilla { template <typename T> class SparseVector { private: - std::unique_ptr<Partitioning> starts; + std::unique_ptr<Partitioning<int>> starts; std::unique_ptr<SplitVector<T>> values; T empty; // Deleted so SparseVector objects can not be copied. @@ -26,7 +26,7 @@ private: } public: SparseVector() : empty() { - starts.reset(new Partitioning(8)); + starts.reset(new Partitioning<int>(8)); values.reset(new SplitVector<T>()); values->InsertEmpty(0, 2); } |