mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
91ce2a55a6
commit
0eddb7c8b3
2 changed files with 6 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Tom Ball (Google) - initial API and implementation
|
||||
* Tom Ball (Google) - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.ui.tests.refactoring.gettersandsetters;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* 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
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Institute for Software - initial API and implementation
|
||||
|
@ -84,11 +84,11 @@ public class GetterSetterInsertEditProvider implements Comparable<GetterSetterIn
|
|||
}
|
||||
|
||||
private ICPPASTQualifiedName getClassname() {
|
||||
IASTNode n = fieldDeclaration.getParent();
|
||||
while (!(n instanceof IASTCompositeTypeSpecifier)) {
|
||||
n = n.getParent();
|
||||
IASTNode node = fieldDeclaration.getParent();
|
||||
while (!(node instanceof IASTCompositeTypeSpecifier)) {
|
||||
node = node.getParent();
|
||||
}
|
||||
IASTCompositeTypeSpecifier comp = (IASTCompositeTypeSpecifier) n;
|
||||
IASTCompositeTypeSpecifier comp = (IASTCompositeTypeSpecifier) node;
|
||||
|
||||
CPPASTQualifiedName qname = new CPPASTQualifiedName();
|
||||
qname.addName(comp.getName().copy(CopyStyle.withLocations));
|
||||
|
|
Loading…
Add table
Reference in a new issue