mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Replace t_assert() with Assert().
Also use this assertions for Expects(), Ensures() and Unexpected().
This commit is contained in:
@@ -132,7 +132,7 @@ object_ptr<StickersBox::Inner> StickersBox::Tab::takeWidget() {
|
||||
|
||||
void StickersBox::Tab::returnWidget(object_ptr<Inner> widget) {
|
||||
_widget = std::move(widget);
|
||||
t_assert(_widget == _weak);
|
||||
Assert(_widget == _weak);
|
||||
}
|
||||
|
||||
void StickersBox::Tab::saveScrollTop() {
|
||||
@@ -404,7 +404,7 @@ void StickersBox::switchTab() {
|
||||
if (!_tabs) return;
|
||||
|
||||
auto tab = _tabs->activeSection();
|
||||
t_assert(tab >= 0 && tab < _tabIndices.size());
|
||||
Assert(tab >= 0 && tab < _tabIndices.size());
|
||||
auto newSection = _tabIndices[tab];
|
||||
|
||||
auto newTab = _tab;
|
||||
|
Reference in New Issue
Block a user