mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
Cosmetics.
This commit is contained in:
parent
53bc0f10e6
commit
c5df80239f
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ import org.eclipse.cdt.internal.core.dom.parser.ProblemType;
|
|||
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPSemantics;
|
||||
|
||||
public class CPPASTExpressionList extends ASTNode implements ICPPASTExpressionList, IASTAmbiguityParent {
|
||||
private static final ICPPFunction[] NO_FUNCTIONS = new ICPPFunction[0];
|
||||
private static final ICPPFunction[] NO_FUNCTIONS = {};
|
||||
|
||||
private IASTExpression[] expressions = new IASTExpression[2];
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class CPPASTExpressionList extends ASTNode implements ICPPASTExpressionLi
|
|||
* @see CPPASTExpressionList#computeImplicitNames
|
||||
*/
|
||||
private IASTImplicitName[] implicitNames;
|
||||
private ICPPFunction[] overloads = null;
|
||||
private ICPPFunction[] overloads;
|
||||
|
||||
@Override
|
||||
public CPPASTExpressionList copy() {
|
||||
|
@ -131,7 +131,7 @@ public class CPPASTExpressionList extends ASTNode implements ICPPASTExpressionLi
|
|||
if (exprs.length < 2)
|
||||
return implicitNames = IASTImplicitName.EMPTY_NAME_ARRAY;
|
||||
|
||||
implicitNames = new IASTImplicitName[exprs.length-1];
|
||||
implicitNames = new IASTImplicitName[exprs.length - 1];
|
||||
|
||||
ICPPFunction[] overloads = getOverloads();
|
||||
for(int i = 0; i < overloads.length; i++) {
|
||||
|
@ -166,7 +166,7 @@ public class CPPASTExpressionList extends ASTNode implements ICPPASTExpressionLi
|
|||
prop == ICPPASTNewExpression.NEW_INITIALIZER)
|
||||
return overloads = NO_FUNCTIONS;
|
||||
|
||||
overloads = new ICPPFunction[exprs.length-1];
|
||||
overloads = new ICPPFunction[exprs.length - 1];
|
||||
IType lookupType = typeOrFunctionSet(exprs[0]);
|
||||
ValueCategory vcat= valueCat(exprs[0]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue