Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/interfaces/quickopendataprovider.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 27 | namespace KDevelop { | |||
---|---|---|---|---|---|
51 | 51 | | |||
52 | QuickOpenDataProviderBase::~QuickOpenDataProviderBase() { | 52 | QuickOpenDataProviderBase::~QuickOpenDataProviderBase() { | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | void QuickOpenDataProviderBase::enableData( const QStringList& , const QStringList& ) { | 55 | void QuickOpenDataProviderBase::enableData( const QStringList& , const QStringList& ) { | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | bool extractLineNumber(const QString& from, QString& path, uint& lineNumber) { | 58 | bool extractLineNumber(const QString& from, QString& path, uint& lineNumber) { | ||
59 | int colonIndex = from.indexOf(':'); | 59 | int colonIndex = from.indexOf(QLatin1Char(':')); | ||
60 | if (colonIndex != -1) { | 60 | if (colonIndex != -1) { | ||
61 | if (colonIndex == from.count() - 1) { | 61 | if (colonIndex == from.count() - 1) { | ||
62 | path = from.mid(0, colonIndex); | 62 | path = from.mid(0, colonIndex); | ||
63 | lineNumber = 0; | 63 | lineNumber = 0; | ||
64 | } else { | 64 | } else { | ||
65 | bool ok; | 65 | bool ok; | ||
66 | uint number = from.midRef(colonIndex + 1).toUInt(&ok); | 66 | uint number = from.midRef(colonIndex + 1).toUInt(&ok); | ||
67 | if (ok) { | 67 | if (ok) { | ||
Show All 13 Lines |