mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Minor code simplification.
This commit is contained in:
parent
34c589670a
commit
4ed86bfe6c
1 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ public class SemanticUtil {
|
|||
if (decs != null) {
|
||||
for (ICPPMethod method : decs) {
|
||||
if (isConversionOperator(method)) {
|
||||
methods= (ICPPMethod[]) ArrayUtil.append(ICPPMethod.class, methods, method);
|
||||
methods= ArrayUtil.append(methods, method);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class SemanticUtil {
|
|||
ICPPMethod[] methods= ICPPMethod.EMPTY_CPPMETHOD_ARRAY;
|
||||
ObjectSet<ICPPClassType> ancestry= inheritanceClosure(clazz);
|
||||
for (int i = 0; i < ancestry.size(); i++) {
|
||||
methods= (ICPPMethod[]) ArrayUtil.addAll(ICPPMethod.class, methods, getDeclaredConversionOperators(ancestry.keyAt(i)));
|
||||
methods= ArrayUtil.addAll(methods, getDeclaredConversionOperators(ancestry.keyAt(i)));
|
||||
}
|
||||
return methods;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue