mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Replace gsl::not_null<T*> with just not_null<T*>.
This commit is contained in:
@@ -27,6 +27,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
|
||||
#include "base/build_config.h"
|
||||
|
||||
template <typename Type>
|
||||
using not_null = gsl::not_null<Type>;
|
||||
|
||||
// Custom libc++ build used for old OS X versions already has this.
|
||||
#ifndef OS_MAC_OLD
|
||||
|
||||
|
@@ -415,7 +415,7 @@ inline void memsetrnd_bad(T &value) {
|
||||
|
||||
class ReadLockerAttempt {
|
||||
public:
|
||||
ReadLockerAttempt(gsl::not_null<QReadWriteLock*> lock) : _lock(lock), _locked(_lock->tryLockForRead()) {
|
||||
ReadLockerAttempt(not_null<QReadWriteLock*> lock) : _lock(lock), _locked(_lock->tryLockForRead()) {
|
||||
}
|
||||
ReadLockerAttempt(const ReadLockerAttempt &other) = delete;
|
||||
ReadLockerAttempt &operator=(const ReadLockerAttempt &other) = delete;
|
||||
@@ -437,7 +437,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
gsl::not_null<QReadWriteLock*> _lock;
|
||||
not_null<QReadWriteLock*> _lock;
|
||||
bool _locked = false;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user