equal
deleted
inserted
replaced
112 bool valSeen = false; |
112 bool valSeen = false; |
113 const QRegExp rxValue(QLatin1String("^summary: (\\d+)")); |
113 const QRegExp rxValue(QLatin1String("^summary: (\\d+)")); |
114 while (!file.atEnd()) { |
114 while (!file.atEnd()) { |
115 const QString line(QLatin1String(file.readLine())); |
115 const QString line(QLatin1String(file.readLine())); |
116 if (rxValue.indexIn(line) != -1) { |
116 if (rxValue.indexIn(line) != -1) { |
117 Q_ASSERT(rxValue.numCaptures() == 1); |
117 Q_ASSERT(rxValue.captureCount() == 1); |
118 bool ok; |
118 bool ok; |
119 val = rxValue.cap(1).toLongLong(&ok); |
119 val = rxValue.cap(1).toLongLong(&ok); |
120 Q_ASSERT(ok); |
120 Q_ASSERT(ok); |
121 valSeen = true; |
121 valSeen = true; |
122 break; |
122 break; |