mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +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,9 +508,8 @@ 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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue