fix C++11 string literal incompatibility

Change-Id: Ie5d484ba7078f29eae6636d01e1d99e3e45d1a45
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-22 15:50:49 +01:00
committed by hjk
parent 09f56a5c0d
commit fa66a540fd
9 changed files with 539 additions and 539 deletions

View File

@@ -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) {