2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Replace gsl::not_null<T*> with just not_null<T*>.

This commit is contained in:
John Preston
2017-08-17 11:31:24 +03:00
parent cc4023d26a
commit b3da99c302
148 changed files with 966 additions and 963 deletions

View File

@@ -31,7 +31,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
void HistoryInit();
class HistoryItem;
using SelectedItemSet = QMap<int, gsl::not_null<HistoryItem*>>;
using SelectedItemSet = QMap<int, not_null<HistoryItem*>>;
enum NewMessageType {
NewMessageUnread,
@@ -99,7 +99,7 @@ public:
base::Observable<SendActionAnimationUpdate> &sendActionAnimationUpdated() {
return _sendActionAnimationUpdated;
}
void selfDestructIn(gsl::not_null<HistoryItem*> item, TimeMs delay);
void selfDestructIn(not_null<HistoryItem*> item, TimeMs delay);
private:
void checkSelfDestructItems();
@@ -646,7 +646,7 @@ private:
class HistoryBlock {
public:
HistoryBlock(gsl::not_null<History*> history) : _history(history) {
HistoryBlock(not_null<History*> history) : _history(history) {
}
HistoryBlock(const HistoryBlock &) = delete;
@@ -670,7 +670,7 @@ public:
int height() const {
return _height;
}
gsl::not_null<History*> history() const {
not_null<History*> history() const {
return _history;
}
@@ -696,7 +696,7 @@ public:
}
protected:
const gsl::not_null<History*> _history;
const not_null<History*> _history;
int _y = 0;
int _height = 0;