Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/codegen/basicrefactoring.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | #include <debug.h> | 47 | #include <debug.h> | ||
48 | 48 | | |||
49 | #include "ui_basicrefactoring.h" | 49 | #include "ui_basicrefactoring.h" | ||
50 | 50 | | |||
51 | namespace { | 51 | namespace { | ||
52 | 52 | | |||
53 | QPair<QString, QString> splitFileAtExtension(const QString& fileName) | 53 | QPair<QString, QString> splitFileAtExtension(const QString& fileName) | ||
54 | { | 54 | { | ||
55 | int idx = fileName.indexOf('.'); | 55 | int idx = fileName.indexOf(QLatin1Char('.')); | ||
56 | if (idx == -1) { | 56 | if (idx == -1) { | ||
57 | return qMakePair(fileName, QString()); | 57 | return qMakePair(fileName, QString()); | ||
58 | } | 58 | } | ||
59 | return qMakePair(fileName.left(idx), fileName.mid(idx)); | 59 | return qMakePair(fileName.left(idx), fileName.mid(idx)); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | } | 62 | } | ||
63 | 63 | | |||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |