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-14 14:27:56 -08:00
parent 91ce2a55a6
commit 0eddb7c8b3
2 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Tom Ball (Google) - initial API and implementation * Tom Ball (Google) - initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.ui.tests.refactoring.gettersandsetters; package org.eclipse.cdt.ui.tests.refactoring.gettersandsetters;

View file

@ -84,11 +84,11 @@ public class GetterSetterInsertEditProvider implements Comparable<GetterSetterIn
} }
private ICPPASTQualifiedName getClassname() { private ICPPASTQualifiedName getClassname() {
IASTNode n = fieldDeclaration.getParent(); IASTNode node = fieldDeclaration.getParent();
while (!(n instanceof IASTCompositeTypeSpecifier)) { while (!(node instanceof IASTCompositeTypeSpecifier)) {
n = n.getParent(); node = node.getParent();
} }
IASTCompositeTypeSpecifier comp = (IASTCompositeTypeSpecifier) n; IASTCompositeTypeSpecifier comp = (IASTCompositeTypeSpecifier) node;
CPPASTQualifiedName qname = new CPPASTQualifiedName(); CPPASTQualifiedName qname = new CPPASTQualifiedName();
qname.addName(comp.getName().copy(CopyStyle.withLocations)); qname.addName(comp.getName().copy(CopyStyle.withLocations));