Merge pull request #16585 from Chocobo1/qstring

Use QString literals
This commit is contained in:
Chocobo1
2022-03-12 12:49:08 +08:00
committed by GitHub
40 changed files with 775 additions and 768 deletions

View File

@@ -762,7 +762,7 @@ bool TorrentImpl::belongsToCategory(const QString &category) const
if (m_category == category) return true;
if (m_session->isSubcategoriesEnabled() && m_category.startsWith(category + '/'))
if (m_session->isSubcategoriesEnabled() && m_category.startsWith(category + u'/'))
return true;
return false;
@@ -1859,7 +1859,7 @@ void TorrentImpl::handleFileRenamedAlert(const lt::file_renamed_alert *p)
// For example renaming "a/b/c" to "d/b/c", then folders "a/b" and "a" will
// be removed if they are empty
const Path oldFilePath = m_filePaths.at(fileIndex);
const Path newFilePath {QString(p->new_name())};
const Path newFilePath {QString::fromUtf8(p->new_name())};
// Check if ".!qB" extension was just added or removed
// We should compare path in a case sensitive manner even on case insensitive