forked from qt-creator/qt-creator
Compile after qt5/qtbase commit 75a0c7f9
Commit 75a0c7f9b52cde47f20fdc1b89e1264d60350848 in qt5/qtbase changed some QRegExp methods to be non-const (they were previously const). This change makes Qt Creator compile again. Change-Id: Ibc98c678126c3b3189df7fcc043463b940951445 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -79,8 +79,8 @@ BranchInfo BazaarClient::synchronousBranchQuery(const QString &repositoryRoot) c
|
||||
QTextStream ts(&branchConfFile);
|
||||
QString branchLocation;
|
||||
QString isBranchBound;
|
||||
const QRegExp branchLocationRx(QLatin1String("bound_location\\s*=\\s*(.+)$"));
|
||||
const QRegExp isBranchBoundRx(QLatin1String("bound\\s*=\\s*(.+)$"));
|
||||
QRegExp branchLocationRx(QLatin1String("bound_location\\s*=\\s*(.+)$"));
|
||||
QRegExp isBranchBoundRx(QLatin1String("bound\\s*=\\s*(.+)$"));
|
||||
while (!ts.atEnd() && (branchLocation.isEmpty() || isBranchBound.isEmpty())) {
|
||||
const QString line = ts.readLine();
|
||||
if (branchLocationRx.indexIn(line) != -1)
|
||||
|
Reference in New Issue
Block a user