mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
avoid duplicate CDTListComparator objects
This commit is contained in:
parent
7a708e12e8
commit
c107a37abc
1 changed files with 1 additions and 2 deletions
|
@ -508,10 +508,9 @@ implements
|
||||||
if (cfgDescs == null) {
|
if (cfgDescs == null) {
|
||||||
cfgDescs = prjd.getConfigurations();
|
cfgDescs = prjd.getConfigurations();
|
||||||
if (cfgDescs == null || cfgDescs.length == 0) return;
|
if (cfgDescs == null || cfgDescs.length == 0) return;
|
||||||
|
Arrays.sort(cfgDescs, CDTListComparator.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
Arrays.sort(cfgDescs, new CDTListComparator());
|
|
||||||
|
|
||||||
// Clear and replace the contents of the selector widget
|
// Clear and replace the contents of the selector widget
|
||||||
configSelector.removeAll();
|
configSelector.removeAll();
|
||||||
for (int i = 0; i < cfgDescs.length; ++i) {
|
for (int i = 0; i < cfgDescs.length; ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue