Skip to content

Commit

Permalink
make QRegularExpression() static to fix Wclazy-use-static-qregularexp…
Browse files Browse the repository at this point in the history
…ression
  • Loading branch information
daschuer authored Jun 21, 2023
1 parent 0269025 commit 2021ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/dlgprefcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ QString DlgPrefController::askForMappingName(const QString& prefilledName) const
"special characters.");
QString fileExistsLabel = tr("A mapping file with that name already exists.");
// Only allow the name to contain letters, numbers, whitespaces and _-+()/
const QRegularExpression rxRemove = QRegularExpression(
static const QRegularExpression rxRemove = QRegularExpression(
QStringLiteral("[^[(a-zA-Z0-9\\_\\-\\+\\(\\)\\/|\\s]"));

// Choose a new file (base) name
Expand Down

0 comments on commit 2021ab9

Please sign in to comment.