diff --git a/src/providers/twitch/TwitchEmotes.cpp b/src/providers/twitch/TwitchEmotes.cpp index 0b160d6e..13214928 100644 --- a/src/providers/twitch/TwitchEmotes.cpp +++ b/src/providers/twitch/TwitchEmotes.cpp @@ -426,9 +426,9 @@ QString TwitchEmotes::cleanUpEmoteCode(const QString &dirtyEmoteCode) cleanCode.detach(); static QMap 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"}, {"\\;-?\\)", ";)"}, diff --git a/src/singletons/ImageUploader.cpp b/src/singletons/ImageUploader.cpp index 27b648f2..dcc21408 100644 --- a/src/singletons/ImageUploader.cpp +++ b/src/singletons/ImageUploader.cpp @@ -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); diff --git a/src/widgets/Window.cpp b/src/widgets/Window.cpp index 12409c4e..047b8cd0 100644 --- a/src/widgets/Window.cpp +++ b/src/widgets/Window.cpp @@ -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 ""; }}, diff --git a/src/widgets/settingspages/GeneralPage.cpp b/src/widgets/settingspages/GeneralPage.cpp index 3d2ff0c3..9d84083a 100644 --- a/src/widgets/settingspages/GeneralPage.cpp +++ b/src/widgets/settingspages/GeneralPage.cpp @@ -954,7 +954,7 @@ void GeneralPage::initLayout(GeneralPageView &layout) QString newPath = getApp()->getPaths().cacheDirectory(); QString pathShortened = "Cache saved at " + + R"(">)" + shortenString(newPath, 50) + ""; cachePathLabel->setText(pathShortened); cachePathLabel->setToolTip(newPath); diff --git a/src/widgets/settingspages/ModerationPage.cpp b/src/widgets/settingspages/ModerationPage.cpp index 82b0c641..e7722710 100644 --- a/src/widgets/settingspages/ModerationPage.cpp +++ b/src/widgets/settingspages/ModerationPage.cpp @@ -91,7 +91,7 @@ ModerationPage::ModerationPage() QString pathShortened = "Logs are saved at " + + R"(">)" + shortenString(pathOriginal, 50) + ""; logsPathLabel->setText(pathShortened);