forked from qt-creator/qt-creator
fix C++11 string literal incompatibility
Change-Id: Ie5d484ba7078f29eae6636d01e1d99e3e45d1a45 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -69,11 +69,11 @@ QSet<QString> BazaarEditor::annotationChanges() const
|
||||
if (txt.isEmpty())
|
||||
return changes;
|
||||
|
||||
QRegExp changeNumRx(QLatin1String("^("BZR_CHANGE_PATTERN") "));
|
||||
QRegExp changeNumRx(QLatin1String("^(" BZR_CHANGE_PATTERN ") "));
|
||||
QTC_ASSERT(changeNumRx.isValid(), return changes);
|
||||
if (changeNumRx.indexIn(txt) != -1) {
|
||||
changes.insert(changeNumRx.cap(1));
|
||||
changeNumRx.setPattern(QLatin1String("\n("BZR_CHANGE_PATTERN") "));
|
||||
changeNumRx.setPattern(QLatin1String("\n(" BZR_CHANGE_PATTERN ") "));
|
||||
QTC_ASSERT(changeNumRx.isValid(), return changes);
|
||||
int pos = 0;
|
||||
while ((pos = changeNumRx.indexIn(txt, pos)) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user