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

Bug 320575 - fallback for add variable should use int not void

This commit is contained in:
Alena Laskavaia 2010-07-22 00:20:50 +00:00
parent 83a58cd77c
commit 9dde9a4f28

View file

@ -177,7 +177,7 @@ public final class CxxAstUtils {
} else { // Fallback - return a `void` declaration
IASTDeclarator declarator = factory.newDeclarator(astName.copy());
IASTSimpleDeclSpecifier declspec = factory.newSimpleDeclSpecifier();
declspec.setType(Kind.eVoid);
declspec.setType(Kind.eInt);
IASTSimpleDeclaration simpleDeclaration = factory
.newSimpleDeclaration(declspec);
simpleDeclaration.addDeclarator(declarator);