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();
|
cleanCode.detach();
|
||||||
|
|
||||||
static QMap<QString, QString> emoteNameReplacements{
|
static QMap<QString, QString> emoteNameReplacements{
|
||||||
{"[oO](_|\\.)[oO]", "O_o"}, {"\\>\\;\\(", ">("},
|
{"[oO](_|\\.)[oO]", "O_o"}, {R"(\>\;\()", ">("},
|
||||||
{"\\<\\;3", "<3"}, {"\\:-?(o|O)", ":O"},
|
{"\\<\\;3", "<3"}, {"\\:-?(o|O)", ":O"},
|
||||||
{"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"},
|
{"\\:-?(p|P)", ":P"}, {R"(\:-?[\\/])", ":/"},
|
||||||
{"\\:-?[z|Z|\\|]", ":Z"}, {"\\:-?\\(", ":("},
|
{"\\:-?[z|Z|\\|]", ":Z"}, {"\\:-?\\(", ":("},
|
||||||
{"\\:-?\\)", ":)"}, {"\\:-?D", ":D"},
|
{"\\:-?\\)", ":)"}, {"\\:-?D", ":D"},
|
||||||
{"\\;-?(p|P)", ";P"}, {"\\;-?\\)", ";)"},
|
{"\\;-?(p|P)", ";P"}, {"\\;-?\\)", ";)"},
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ void ImageUploader::sendImageUploadRequest(RawImageData imageData,
|
|||||||
part.setHeader(QNetworkRequest::ContentLengthHeader,
|
part.setHeader(QNetworkRequest::ContentLengthHeader,
|
||||||
QVariant(imageData.data.length()));
|
QVariant(imageData.data.length()));
|
||||||
part.setHeader(QNetworkRequest::ContentDispositionHeader,
|
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(formField)
|
||||||
.arg(imageData.format));
|
.arg(imageData.format));
|
||||||
payload->append(part);
|
payload->append(part);
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ void Window::addShortcuts()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return "Invalid popup target. Use \"split\" or \"window\".";
|
return R"(Invalid popup target. Use "split" or "window".)";
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
|
|||||||
@@ -954,7 +954,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
QString newPath = getApp()->getPaths().cacheDirectory();
|
QString newPath = getApp()->getPaths().cacheDirectory();
|
||||||
|
|
||||||
QString pathShortened = "Cache saved at <a href=\"file:///" + newPath +
|
QString pathShortened = "Cache saved at <a href=\"file:///" + newPath +
|
||||||
"\"><span style=\"color: white;\">" +
|
R"("><span style="color: white;">)" +
|
||||||
shortenString(newPath, 50) + "</span></a>";
|
shortenString(newPath, 50) + "</span></a>";
|
||||||
cachePathLabel->setText(pathShortened);
|
cachePathLabel->setText(pathShortened);
|
||||||
cachePathLabel->setToolTip(newPath);
|
cachePathLabel->setToolTip(newPath);
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ ModerationPage::ModerationPage()
|
|||||||
|
|
||||||
QString pathShortened =
|
QString pathShortened =
|
||||||
"Logs are saved at <a href=\"file:///" + pathOriginal +
|
"Logs are saved at <a href=\"file:///" + pathOriginal +
|
||||||
"\"><span style=\"color: white;\">" +
|
R"("><span style="color: white;">)" +
|
||||||
shortenString(pathOriginal, 50) + "</span></a>";
|
shortenString(pathOriginal, 50) + "</span></a>";
|
||||||
|
|
||||||
logsPathLabel->setText(pathShortened);
|
logsPathLabel->setText(pathShortened);
|
||||||
|
|||||||
Reference in New Issue
Block a user