diff --git a/qmake/project.cpp b/qmake/project.cpp index c491e9b1b73..9716237f906 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -2085,7 +2085,7 @@ QMakeProject::doProjectExpand(QString func, QList args_list, dirs.append(""); } - const QRegExp regex(r, Qt::CaseSensitive, QRegExp::Wildcard); + QRegExp regex(r, Qt::CaseSensitive, QRegExp::Wildcard); for(int d = 0; d < dirs.count(); d++) { QString dir = dirs[d]; if (!dir.isEmpty() && !dir.endsWith(QLatin1Char('/')))