Revise string literal usage

This commit covers src/gui folder.
PR #16757.
This commit is contained in:
Chocobo1
2022-03-29 10:41:17 +08:00
committed by GitHub
parent 746fe7ba09
commit 75c93d72be
36 changed files with 275 additions and 280 deletions

View File

@@ -88,8 +88,8 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent)
uniqueURLs << str;
}
const QString text = uniqueURLs.values().join(QLatin1Char('\n'))
+ (!uniqueURLs.isEmpty() ? QLatin1String("\n") : QLatin1String(""));
const QString text = uniqueURLs.values().join(u'\n')
+ (!uniqueURLs.isEmpty() ? u"\n" : u"");
m_ui->textUrls->setText(text);
m_ui->textUrls->moveCursor(QTextCursor::End);