mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Replace t_assert() with Assert().
Also use this assertions for Expects(), Ensures() and Unexpected().
This commit is contained in:
@@ -430,7 +430,7 @@ QString SuggestionsController::getEmojiQuery() {
|
||||
auto isGoodCharBeforeSuggestion = [isSuggestionChar](QChar ch) {
|
||||
return !isSuggestionChar(ch) || (ch == 0);
|
||||
};
|
||||
t_assert(position > 0 && position <= text.size());
|
||||
Assert(position > 0 && position <= text.size());
|
||||
for (auto i = position; i != 0;) {
|
||||
auto ch = text[--i];
|
||||
if (ch == ':') {
|
||||
|
Reference in New Issue
Block a user