2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Replaced some qstr with u""_q literal.

This commit is contained in:
23rd
2022-11-27 00:20:17 +03:00
parent 22dc7023fc
commit 2acedca6b7
99 changed files with 477 additions and 480 deletions

View File

@@ -1259,7 +1259,7 @@ ChatBackground *Background() {
}
bool IsEmbeddedTheme(const QString &path) {
return path.isEmpty() || path.startsWith(qstr(":/gui/"));
return path.isEmpty() || path.startsWith(u":/gui/"_q);
}
bool Initialize(Saved &&saved) {

View File

@@ -612,7 +612,7 @@ Fn<void()> SavePreparedTheme(
)).done([=](const MTPTheme &result) {
save();
}).fail([=](const MTP::Error &error) {
if (error.type() == qstr("THEME_FILE_INVALID")) {
if (error.type() == u"THEME_FILE_INVALID"_q) {
save();
} else {
fail(SaveErrorType::Other, error.type());
@@ -887,11 +887,11 @@ void SaveThemeBox(
const QString &error) {
*saving = false;
box->showLoading(false);
if (error == qstr("THEME_TITLE_INVALID")) {
if (error == u"THEME_TITLE_INVALID"_q) {
type = SaveErrorType::Name;
} else if (error == qstr("THEME_SLUG_INVALID")) {
} else if (error == u"THEME_SLUG_INVALID"_q) {
type = SaveErrorType::Link;
} else if (error == qstr("THEME_SLUG_OCCUPIED")) {
} else if (error == u"THEME_SLUG_OCCUPIED"_q) {
Ui::Toast::Show(
Ui::BoxShow(box).toastParent(),
tr::lng_create_channel_link_occupied(tr::now));