Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
27db4607
Commit
27db4607
authored
Mar 20, 2021
by
Vincent Pinon
Browse files
clang-tidy -fix: modernize-raw-string-literal
parent
9ee93449
Changes
2
Show whitespace changes
Inline
Side-by-side
src/dialogs/kdenlivesettingsdialog.cpp
View file @
27db4607
...
...
@@ -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
);
...
...
src/doc/documentvalidator.cpp
View file @
27db4607
...
...
@@ -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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment