Commit 27db4607 authored by Vincent Pinon's avatar Vincent Pinon
Browse files

clang-tidy -fix: modernize-raw-string-literal

parent 9ee93449
......@@ -94,7 +94,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(QMap<QString, QString> mappable_a
m_configMisc.kcfg_use_exiftool->setEnabled(!QStandardPaths::findExecutable(QStringLiteral("exiftool")).isEmpty());
QRegExp rx("(\\+|-)?\\d{2}:\\d{2}:\\d{2}:\\d{2}");
QRegExp rx(R"((\+|-)?\d{2}:\d{2}:\d{2}:\d{2})");
QValidator *validator = new QRegExpValidator(rx, this);
m_configMisc.kcfg_color_duration->setInputMask(pCore->timecode().mask());
m_configMisc.kcfg_color_duration->setValidator(validator);
......
......@@ -1751,7 +1751,7 @@ auto DocumentValidator::upgradeTo100(const QLocale &documentLocale) -> QString {
qDebug() << "Decimal point is NOT OK and needs fixing. Converting to . from " << decimalPoint;
auto fixTimecode = [decimalPoint] (QString &value) {
QRegExp reTimecode("(\\d+:\\d+:\\d+)" + QString(decimalPoint) + "(\\d+)");
QRegExp reTimecode(R"((\d+:\d+:\d+))" + QString(decimalPoint) + "(\\d+)");
QRegExp reValue("(=\\d+)" + QString(decimalPoint) + "(\\d+)");
value.replace(reTimecode, "\\1.\\2")
.replace(reValue, "\\1.\\2");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment