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:
parent
62403ec786
commit
2b27259c0f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue