I am getting this warning in Qt Creator:
Don't create temporary QRegularExpression objects. Use a static QRegularExpression object instead [clazy-use-static-qregularexpression]
And it's regarding the code snippet below:
QRegularExpression re("SEARCHING...",QRegularExpression::CaseInsensitiveOption);
QRegularExpressionMatch match = re.match(frame);
if (match.hasMatch()) {
It's not obvious to me, how should I use the QRegularExpression
instead?