diff --git a/src/audio/QGCAudioWorker.cpp b/src/audio/QGCAudioWorker.cpp index e0d9ee86cc1b15793fca620acf52c49f4c317935..9738e29e3c8477f277aa15405076150008cc01e7 100644 --- a/src/audio/QGCAudioWorker.cpp +++ b/src/audio/QGCAudioWorker.cpp @@ -174,7 +174,7 @@ bool QGCAudioWorker::isMuted() } bool QGCAudioWorker::_getMillisecondString(const QString& string, QString& match, int& number) { - QRegularExpression re("([0-9]*ms)"); + static QRegularExpression re("([0-9]+ms)"); QRegularExpressionMatchIterator i = re.globalMatch(string); while (i.hasNext()) { QRegularExpressionMatch qmatch = i.next();