Changeset View
Changeset View
Standalone View
Standalone View
src/gdbhighlighter.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 61 | if (lineNr == 0) { | |||
---|---|---|---|---|---|
62 | // line that contains 'Application: ...' | 62 | // line that contains 'Application: ...' | ||
63 | ++lineNr; | 63 | ++lineNr; | ||
64 | cur = next; | 64 | cur = next; | ||
65 | continue; | 65 | continue; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | diff = next - cur; | 68 | diff = next - cur; | ||
69 | 69 | | |||
70 | QString lineStr = text.mid(cur, diff).append(QLatin1Char('\n')); | 70 | const QString lineStr = text.mid(cur, diff).append(QLatin1Char('\n')); | ||
71 | // -1 since we skip the first line | 71 | // -1 since we skip the first line | ||
72 | QMap< int, BacktraceLine >::iterator it = lines.lowerBound(lineNr - 1); | 72 | QMap< int, BacktraceLine >::iterator it = lines.lowerBound(lineNr - 1); | ||
73 | Q_ASSERT(it != lines.end()); | 73 | Q_ASSERT(it != lines.end()); | ||
74 | // lowerbound would return the next higher item, even though we want the former one | 74 | // lowerbound would return the next higher item, even though we want the former one | ||
75 | if (it.key() > lineNr - 1) { | 75 | if (it.key() > lineNr - 1) { | ||
76 | --it; | 76 | --it; | ||
77 | } | 77 | } | ||
78 | const BacktraceLine& line = it.value(); | 78 | const BacktraceLine& line = it.value(); | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |