mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Fix an "unsafe method call" error.
Change-Id: I174b14358cdf4252dfb5293c4b86ecfe873fb845 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
This commit is contained in:
parent
03e0264fc1
commit
b0d66aa777
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction;
|
|||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPMethod;
|
||||
import org.eclipse.cdt.core.parser.util.CharArrayUtils;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.ASTQueries;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.ClassTypeHelper;
|
||||
|
||||
public class ProblemBindingChecker extends AbstractIndexAstChecker {
|
||||
public static String ERR_ID_OverloadProblem = "org.eclipse.cdt.codan.internal.checkers.OverloadProblem"; //$NON-NLS-1$
|
||||
|
@ -281,7 +282,7 @@ public class ProblemBindingChecker extends AbstractIndexAstChecker {
|
|||
}
|
||||
} else if (candidateBinding instanceof ICPPClassType) {
|
||||
ICPPClassType classType = (ICPPClassType) candidateBinding;
|
||||
for (ICPPFunction constructor : classType.getConstructors()) {
|
||||
for (ICPPFunction constructor : ClassTypeHelper.getConstructors(classType, problemBinding.getASTNode())) {
|
||||
String signature = getFunctionSignature(constructor);
|
||||
if (!signature.equals(lastSignature)) {
|
||||
candidatesString += signature + "\n"; //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue