2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use vector instead of custom linked list.

This commit is contained in:
John Preston
2019-04-16 15:37:50 +04:00
parent 58d86af399
commit 2862070348
9 changed files with 129 additions and 268 deletions

View File

@@ -42,11 +42,7 @@ class Row : public RippleRow {
public:
explicit Row(std::nullptr_t) {
}
Row(Key key, Row *prev, Row *next, int pos)
: _id(key)
, _prev(prev)
, _next(next)
, _pos(pos) {
Row(Key key, int pos) : _id(key), _pos(pos) {
}
Key key() const {
@@ -73,8 +69,6 @@ private:
friend class List;
Key _id;
Row *_prev = nullptr;
Row *_next = nullptr;
int _pos = 0;
};