use "%" for string-concatenation

Qt-Docs says it's less memory-usage...
This commit is contained in:
plc-user
2025-05-22 21:33:32 +02:00
parent 3a8e6b16f5
commit ad29893842
30 changed files with 167 additions and 167 deletions

View File

@@ -419,7 +419,7 @@ void SearchAndReplaceWidget::search()
else
{
//entire word
QRegularExpression rx("\\b" + str + "\\b");
QRegularExpression rx("\\b" % str % "\\b");
if (!rx.isValid())
{
qWarning() <<QObject::tr("this is an error in the code")