2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -39,10 +39,10 @@ class Controller {
public:
static constexpr auto kDefaultDialogsWidthRatio = 5. / 14;
Controller(gsl::not_null<MainWindow*> window) : _window(window) {
Controller(not_null<MainWindow*> window) : _window(window) {
}
gsl::not_null<MainWindow*> window() const {
not_null<MainWindow*> window() const {
return _window;
}
@@ -80,7 +80,7 @@ public:
bool canProvideChatWidth(int requestedWidth) const;
void provideChatWidth(int requestedWidth);
void showJumpToDate(gsl::not_null<PeerData*> peer, QDate requestedDate);
void showJumpToDate(not_null<PeerData*> peer, QDate requestedDate);
base::Variable<float64> &dialogsWidthRatio() {
return _dialogsWidthRatio;
@@ -102,7 +102,7 @@ public:
}
private:
gsl::not_null<MainWindow*> _window;
not_null<MainWindow*> _window;
base::Observable<PeerData*> _searchInPeerChanged;
base::Observable<PeerData*> _historyPeerChanged;