mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Replace t_assert() with Assert().
Also use this assertions for Expects(), Ensures() and Unexpected().
This commit is contained in:
@@ -213,7 +213,7 @@ void MainWindow::clearPasscode() {
|
||||
if (_intro) {
|
||||
_intro->showAnimated(bg, true);
|
||||
} else {
|
||||
t_assert(_main != nullptr);
|
||||
Assert(_main != nullptr);
|
||||
_main->showAnimated(bg, true);
|
||||
Messenger::Instance().checkStartUrl();
|
||||
}
|
||||
@@ -299,7 +299,7 @@ void MainWindow::setupMain(const MTPUser *self) {
|
||||
|
||||
clearWidgets();
|
||||
|
||||
t_assert(AuthSession::Exists());
|
||||
Assert(AuthSession::Exists());
|
||||
|
||||
_main.create(bodyWidget(), controller());
|
||||
_main->show();
|
||||
|
Reference in New Issue
Block a user