1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 11:15:38 +02:00

fix to CPPASTFieldDeclarator constructor

This commit is contained in:
Mike Kucera 2008-01-24 21:38:40 +00:00
parent 40dfc474ee
commit 477c0b147d

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others.
* Copyright (c) 2004, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -14,6 +14,7 @@ import org.eclipse.cdt.core.dom.ast.ASTVisitor;
import org.eclipse.cdt.core.dom.ast.IASTExpression;
import org.eclipse.cdt.core.dom.ast.IASTFieldDeclarator;
import org.eclipse.cdt.core.dom.ast.IASTInitializer;
import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNode;
import org.eclipse.cdt.internal.core.dom.parser.IASTAmbiguityParent;
@ -29,7 +30,8 @@ public class CPPASTFieldDeclarator extends CPPASTDeclarator implements
public CPPASTFieldDeclarator() {
}
public CPPASTFieldDeclarator(IASTExpression bitField) {
public CPPASTFieldDeclarator(IASTName name, IASTExpression bitField) {
super(name);
setBitFieldSize(bitField);
}