modernize C++: raw string literal
This commit is contained in:
@@ -149,13 +149,13 @@ void MDIView::onRelabel(Gui::Document *pDoc)
|
||||
// Try to separate document name and view number if there is one
|
||||
QString cap = windowTitle();
|
||||
// Either with dirty flag ...
|
||||
QRegularExpression rx(QLatin1String("(\\s\\:\\s\\d+\\[\\*\\])$"));
|
||||
QRegularExpression rx(QLatin1String(R"((\s\:\s\d+\[\*\])$)"));
|
||||
QRegularExpressionMatch match;
|
||||
//int pos =
|
||||
boost::ignore_unused(cap.lastIndexOf(rx, -1, &match));
|
||||
if (!match.hasMatch()) {
|
||||
// ... or not
|
||||
rx.setPattern(QLatin1String("(\\s\\:\\s\\d+)$"));
|
||||
rx.setPattern(QLatin1String(R"((\s\:\s\d+)$)"));
|
||||
//pos =
|
||||
boost::ignore_unused(cap.lastIndexOf(rx, -1, &match));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user