1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Prevents multiple adding of implicit methods to index.

This commit is contained in:
Markus Schorn 2006-12-14 12:02:53 +00:00
parent 62403ec786
commit 2b27259c0f

View file

@ -222,7 +222,9 @@ public class PDOMCPPLinkage extends PDOMLinkage {
ICPPMethod[] implicit= ((ICPPClassScope) scope).getImplicitMethods(); ICPPMethod[] implicit= ((ICPPClassScope) scope).getImplicitMethods();
for (int i = 0; i < implicit.length; i++) { for (int i = 0; i < implicit.length; i++) {
ICPPMethod method = implicit[i]; ICPPMethod method = implicit[i];
addBinding(type, method); if (adaptBinding(method) == null) {
addBinding(type, method);
}
} }
} }
} catch (DOMException e) { } catch (DOMException e) {