fix(clang-tidy): modernize-raw-string-literal (#6274)

This commit is contained in:
pajlada
2025-06-15 23:10:17 +02:00
committed by GitHub
parent f26d6d57de
commit 85863f52df
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -426,9 +426,9 @@ QString TwitchEmotes::cleanUpEmoteCode(const QString &dirtyEmoteCode)
cleanCode.detach();
static QMap<QString, QString> emoteNameReplacements{
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", ">("},
{"[oO](_|\\.)[oO]", "O_o"}, {R"(\&gt\;\()", ">("},
{"\\&lt\\;3", "<3"}, {"\\:-?(o|O)", ":O"},
{"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"},
{"\\:-?(p|P)", ":P"}, {R"(\:-?[\\/])", ":/"},
{"\\:-?[z|Z|\\|]", ":Z"}, {"\\:-?\\(", ":("},
{"\\:-?\\)", ":)"}, {"\\:-?D", ":D"},
{"\\;-?(p|P)", ";P"}, {"\\;-?\\)", ";)"},
+1 -1
View File
@@ -170,7 +170,7 @@ void ImageUploader::sendImageUploadRequest(RawImageData imageData,
part.setHeader(QNetworkRequest::ContentLengthHeader,
QVariant(imageData.data.length()));
part.setHeader(QNetworkRequest::ContentDispositionHeader,
QString("form-data; name=\"%1\"; filename=\"control_v.%2\"")
QString(R"(form-data; name="%1"; filename="control_v.%2")")
.arg(formField)
.arg(imageData.format));
payload->append(part);
+1 -1
View File
@@ -438,7 +438,7 @@ void Window::addShortcuts()
}
else
{
return "Invalid popup target. Use \"split\" or \"window\".";
return R"(Invalid popup target. Use "split" or "window".)";
}
return "";
}},
+1 -1
View File
@@ -954,7 +954,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
QString newPath = getApp()->getPaths().cacheDirectory();
QString pathShortened = "Cache saved at <a href=\"file:///" + newPath +
"\"><span style=\"color: white;\">" +
R"("><span style="color: white;">)" +
shortenString(newPath, 50) + "</span></a>";
cachePathLabel->setText(pathShortened);
cachePathLabel->setToolTip(newPath);
+1 -1
View File
@@ -91,7 +91,7 @@ ModerationPage::ModerationPage()
QString pathShortened =
"Logs are saved at <a href=\"file:///" + pathOriginal +
"\"><span style=\"color: white;\">" +
R"("><span style="color: white;">)" +
shortenString(pathOriginal, 50) + "</span></a>";
logsPathLabel->setText(pathShortened);