fix(clang-tidy): modernize-raw-string-literal (#6274)
This commit is contained in:
@@ -426,9 +426,9 @@ QString TwitchEmotes::cleanUpEmoteCode(const QString &dirtyEmoteCode)
|
||||
cleanCode.detach();
|
||||
|
||||
static QMap<QString, QString> emoteNameReplacements{
|
||||
{"[oO](_|\\.)[oO]", "O_o"}, {"\\>\\;\\(", ">("},
|
||||
{"[oO](_|\\.)[oO]", "O_o"}, {R"(\>\;\()", ">("},
|
||||
{"\\<\\;3", "<3"}, {"\\:-?(o|O)", ":O"},
|
||||
{"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"},
|
||||
{"\\:-?(p|P)", ":P"}, {R"(\:-?[\\/])", ":/"},
|
||||
{"\\:-?[z|Z|\\|]", ":Z"}, {"\\:-?\\(", ":("},
|
||||
{"\\:-?\\)", ":)"}, {"\\:-?D", ":D"},
|
||||
{"\\;-?(p|P)", ";P"}, {"\\;-?\\)", ";)"},
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 "";
|
||||
}},
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user