qmake: prune obsolete QString::detach() call
no m_tmp is involved any more in this code path; it uses QStringRef.
amends 11d957d043
.
Change-Id: Ib272d61edfb150a549c5e6a9a60d53502702e802
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
ce5e6876d4
commit
9f98935d33
@ -1628,9 +1628,7 @@ bool QMakeEvaluator::isActiveConfig(const QStringRef &config, bool regex)
|
||||
return m_hostBuild;
|
||||
|
||||
if (regex && (config.contains(QLatin1Char('*')) || config.contains(QLatin1Char('?')))) {
|
||||
QString cfg = config.toString();
|
||||
cfg.detach(); // Keep m_tmp out of QRegExp's cache
|
||||
QRegExp re(cfg, Qt::CaseSensitive, QRegExp::Wildcard);
|
||||
QRegExp re(config.toString(), Qt::CaseSensitive, QRegExp::Wildcard);
|
||||
|
||||
// mkspecs
|
||||
if (re.exactMatch(m_qmakespecName))
|
||||
|
Loading…
Reference in New Issue
Block a user