1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-16 20:55:44 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-01-06 03:01:07 +00:00
parent bf2a1b3472
commit 3df7d3854f

View file

@ -39,7 +39,7 @@ public class InsertLocation {
return nodeToInsertBefore; return nodeToInsertBefore;
} }
public IASTNode getPartenOfNodeToInsertBefore() throws CoreException{ public IASTNode getPartenOfNodeToInsertBefore() throws CoreException {
IASTNode affectedNode = getAffectedNode(); IASTNode affectedNode = getAffectedNode();
return (affectedNode != null) ? affectedNode.getParent() : getTargetTranslationUnit(); return (affectedNode != null) ? affectedNode.getParent() : getTargetTranslationUnit();
} }
@ -84,7 +84,7 @@ public class InsertLocation {
targetTranslationUnit = TranslationUnitHelper.loadTranslationUnit(insertFile, true); targetTranslationUnit = TranslationUnitHelper.loadTranslationUnit(insertFile, true);
} }
} }
public int getInsertPosition() { public int getInsertPosition() {
if (nodeToInsertBefore != null) { if (nodeToInsertBefore != null) {
return nodeToInsertBefore.getFileLocation().getNodeOffset(); return nodeToInsertBefore.getFileLocation().getNodeOffset();