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

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-01-02 22:48:59 +00:00
parent a84636dec5
commit c1bea60652
2 changed files with 10 additions and 11 deletions

View file

@ -30,8 +30,8 @@ import org.eclipse.cdt.internal.core.dom.parser.IASTAmbiguityParent;
* Models a function definition without a try-block. If used for a constructor definition it may contain
* member initializers.
*/
public class CPPASTFunctionDefinition extends ASTNode implements
ICPPASTFunctionDefinition, IASTAmbiguityParent {
public class CPPASTFunctionDefinition extends ASTNode
implements ICPPASTFunctionDefinition, IASTAmbiguityParent {
private IASTDeclSpecifier declSpecifier;
private IASTFunctionDeclarator declarator;
@ -41,7 +41,6 @@ public class CPPASTFunctionDefinition extends ASTNode implements
private boolean fDeleted= false;
private boolean fDefaulted= false;
public CPPASTFunctionDefinition() {
}
@ -199,8 +198,7 @@ public class CPPASTFunctionDefinition extends ASTNode implements
}
public void replace(IASTNode child, IASTNode other) {
if( bodyStatement == child )
{
if (bodyStatement == child) {
other.setPropertyInParent(bodyStatement.getPropertyInParent());
other.setParent(bodyStatement.getParent());
bodyStatement = (IASTStatement) other;

View file

@ -55,7 +55,8 @@ public class SelectionHelper {
}
@Override
public int visit(IASTDeclaration declaration) {
if (declaration instanceof IASTSimpleDeclaration && isSelectionOnExpression(textSelection, declaration)) {
if (declaration instanceof IASTSimpleDeclaration &&
isSelectionOnExpression(textSelection, declaration)) {
container.setObject((IASTSimpleDeclaration) declaration);
}
return super.visit(declaration);