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-11-01 20:03:45 -07:00
parent ed8b3356ad
commit 5b9c3d95a5
3 changed files with 7 additions and 8 deletions

View file

@ -41,7 +41,7 @@ import org.eclipse.cdt.internal.core.dom.rewrite.commenthandler.NodeCommentMap;
*/ */
public class DeclaratorWriter extends NodeWriter { public class DeclaratorWriter extends NodeWriter {
private static final String AMPERSAND_SPACE = "& "; //$NON-NLS-1$ private static final String AMPERSAND_SPACE = "& "; //$NON-NLS-1$
private static final String AMPERSAND__AMPERSAND_SPACE = "&& "; //$NON-NLS-1$ private static final String AMPERSAND_AMPERSAND_SPACE = "&& "; //$NON-NLS-1$
private static final String STAR_SPACE = "* "; //$NON-NLS-1$ private static final String STAR_SPACE = "* "; //$NON-NLS-1$
private static final String PURE_VIRTUAL = " = 0"; //$NON-NLS-1$ private static final String PURE_VIRTUAL = " = 0"; //$NON-NLS-1$
private static final String MUTABLE = "mutable"; //$NON-NLS-1$ private static final String MUTABLE = "mutable"; //$NON-NLS-1$
@ -198,7 +198,7 @@ public class DeclaratorWriter extends NodeWriter {
writePointer(pointOp); writePointer(pointOp);
} else if (operator instanceof ICPPASTReferenceOperator) { } else if (operator instanceof ICPPASTReferenceOperator) {
if (((ICPPASTReferenceOperator) operator).isRValueReference()) { if (((ICPPASTReferenceOperator) operator).isRValueReference()) {
scribe.print(AMPERSAND__AMPERSAND_SPACE); scribe.print(AMPERSAND_AMPERSAND_SPACE);
} else { } else {
scribe.print(AMPERSAND_SPACE); scribe.print(AMPERSAND_SPACE);
} }

View file

@ -141,7 +141,6 @@ public class MacroExpansionHandler {
} }
} }
} }
} }
private IASTFileLocation getFileLocation(IASTNode node) { private IASTFileLocation getFileLocation(IASTNode node) {