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

@@ -80,11 +80,11 @@ QSet<QString> GitEditor::annotationChanges() const
if (txt.isEmpty())
return changes;
// Hunt for first change number in annotation: "<change>:"
QRegExp r(QLatin1String("^("CHANGE_PATTERN_8C") "));
QRegExp r(QLatin1String("^(" CHANGE_PATTERN_8C ") "));
QTC_ASSERT(r.isValid(), return changes);
if (r.indexIn(txt) != -1) {
changes.insert(r.cap(1));
r.setPattern(QLatin1String("\n("CHANGE_PATTERN_8C") "));
r.setPattern(QLatin1String("\n(" CHANGE_PATTERN_8C ") "));
QTC_ASSERT(r.isValid(), return changes);
int pos = 0;
while ((pos = r.indexIn(txt, pos)) != -1) {