diff options
author | mitchell <unknown> | 2020-01-05 21:22:02 -0500 |
---|---|---|
committer | mitchell <unknown> | 2020-01-05 21:22:02 -0500 |
commit | 60e87889d6438e386acf58c3967fb874af9aae82 (patch) | |
tree | 9c5c2660c59aff04ddedea19fa03fd271f8bba5c /src/SparseVector.h | |
parent | dbb7374c185718655dd77c294eb281e8b93c538e (diff) | |
download | scintilla-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/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 e508f63da..e6f59e9dc 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -27,8 +27,8 @@ private: } public: SparseVector() : empty() { - starts = std::unique_ptr<Partitioning<Sci::Position>>(new Partitioning<Sci::Position>(8)); - values = std::unique_ptr<SplitVector<T>>(new SplitVector<T>()); + starts = Sci::make_unique<Partitioning<Sci::Position>>(8); + values = Sci::make_unique<SplitVector<T>>(); values->InsertEmpty(0, 2); } // Deleted so SparseVector objects can not be copied. |