initialComponents is unsigned, so can't -1 from it; just return if the components list is empty
CCBUG:227118 svn path=/branches/KDE/4.4/kdelibs/; revision=1090802
This commit is contained in:
parent
1b191f52ba
commit
70185eba03
@ -128,6 +128,10 @@ bool correctPathCase(const QString& path, QString &corrected)
|
|||||||
components.pop_back();
|
components.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (components.isEmpty()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
QString correctPath;
|
QString correctPath;
|
||||||
const unsigned initialComponents = components.size();
|
const unsigned initialComponents = components.size();
|
||||||
for (unsigned i = 0; i < initialComponents - 1; i ++) {
|
for (unsigned i = 0; i < initialComponents - 1; i ++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user