forked from qt-creator/qt-creator
Core: Replace some QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098 Change-Id: I25d90bfdb0c07cea0c076ad7b9f04886d751600a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -653,7 +653,7 @@ static QString getUserFilePath(const QString &proposalFileName)
|
||||
static QString idFromDisplayName(const QString &displayName)
|
||||
{
|
||||
QString id = displayName;
|
||||
id.remove(QRegExp(QLatin1String("&(?!&)")));
|
||||
id.remove(QRegularExpression("&(?!&)"));
|
||||
QChar *c = id.data();
|
||||
while (!c->isNull()) {
|
||||
if (!c->isLetterOrNumber())
|
||||
|
||||
Reference in New Issue
Block a user