2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

UniquePointer > std_::unique_ptr, MakeUnique > std_::make_unique.

This commit is contained in:
John Preston
2016-04-10 23:20:48 +04:00
parent dd1d04e9b0
commit 460e2ec0ac
29 changed files with 214 additions and 177 deletions

View File

@@ -27,11 +27,11 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
namespace Dialogs {
List::List(SortMode sortMode)
: _last(MakeUnique<Row>(nullptr, nullptr, nullptr, 0))
, _begin(_last.data())
, _end(_last.data())
: _last(std_::make_unique<Row>(nullptr, nullptr, nullptr, 0))
, _begin(_last.get())
, _end(_last.get())
, _sortMode(sortMode)
, _current(_last.data()) {
, _current(_last.get()) {
}
void List::adjustCurrent(int32 y, int32 h) const {

View File

@@ -121,7 +121,7 @@ private:
return row->_prev;
}
UniquePointer<Row> _last;
std_::unique_ptr<Row> _last;
Row *_begin;
Row *_end;
SortMode _sortMode;