1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-16 12:45:41 +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;
}
public IASTNode getPartenOfNodeToInsertBefore() throws CoreException{
public IASTNode getPartenOfNodeToInsertBefore() throws CoreException {
IASTNode affectedNode = getAffectedNode();
return (affectedNode != null) ? affectedNode.getParent() : getTargetTranslationUnit();
}
@ -84,7 +84,7 @@ public class InsertLocation {
targetTranslationUnit = TranslationUnitHelper.loadTranslationUnit(insertFile, true);
}
}
public int getInsertPosition() {
if (nodeToInsertBefore != null) {
return nodeToInsertBefore.getFileLocation().getNodeOffset();