2
0
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:
John Preston
2017-08-17 12:06:26 +03:00
parent b3da99c302
commit 25ffaaaa2d
107 changed files with 492 additions and 435 deletions

View File

@@ -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();