modernize C++: raw string literal

This commit is contained in:
wmayer
2023-08-07 16:02:39 +02:00
committed by Chris Hennes
parent 61daaceb8f
commit 96aabe113e
21 changed files with 48 additions and 46 deletions

View File

@@ -237,7 +237,7 @@ void DlgSettingsImageImp::onStandardSizeBoxActivated(int index)
else {
// try to extract from the string
QString text = ui->standardSizeBox->itemText(index);
QRegularExpression rx(QLatin1String("\\b\\d{2,5}\\b"));
QRegularExpression rx(QLatin1String(R"(\b\d{2,5}\b)"));
int pos = 0;
auto match = rx.match(text, pos);
if (match.hasMatch()) {