mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-08-24 Chris Wiebe
fix sorting bug * browser/org/eclipse/cdt/core/browser/QualifiedTypeName.java
This commit is contained in:
parent
3c98cacf7a
commit
c56740a804
2 changed files with 11 additions and 0 deletions
|
@ -260,6 +260,9 @@ public class QualifiedTypeName implements IQualifiedTypeName {
|
||||||
for (int i = 0; result == 0 && i < len; ++i) {
|
for (int i = 0; result == 0 && i < len; ++i) {
|
||||||
result = fSegments[i].compareTo(segments[i]);
|
result = fSegments[i].compareTo(segments[i]);
|
||||||
}
|
}
|
||||||
|
if (result == 0 && fSegments.length != segments.length) {
|
||||||
|
result = (fSegments.length < segments.length) ? -1 : 1;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,6 +277,9 @@ public class QualifiedTypeName implements IQualifiedTypeName {
|
||||||
for (int i = 0; result == 0 && i < len; ++i) {
|
for (int i = 0; result == 0 && i < len; ++i) {
|
||||||
result = fSegments[i].compareToIgnoreCase(segments[i]);
|
result = fSegments[i].compareToIgnoreCase(segments[i]);
|
||||||
}
|
}
|
||||||
|
if (result == 0 && fSegments.length != segments.length) {
|
||||||
|
result = (fSegments.length < segments.length) ? -1 : 1;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2004-08-24 Chris Wiebe
|
||||||
|
|
||||||
|
fix sorting bug
|
||||||
|
* browser/org/eclipse/cdt/core/browser/QualifiedTypeName.java
|
||||||
|
|
||||||
2004-08-21 Alain Magloire
|
2004-08-21 Alain Magloire
|
||||||
|
|
||||||
Hardcode The CEditor id and the ASM id for the
|
Hardcode The CEditor id and the ASM id for the
|
||||||
|
|
Loading…
Add table
Reference in a new issue