From 4b9a8ef359706c7f79490021641aea81ffbc2d6b Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 7 Mar 2011 19:22:29 +0000 Subject: [PATCH] Cosmetics. --- .../eclipse/cdt/internal/core/model/TranslationUnit.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java index ded1c8d5117..d8b094fe69c 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java @@ -861,8 +861,7 @@ public class TranslationUnit extends Openable implements ITranslationUnit { } } } - } - catch (CoreException e) { + } catch (CoreException e) { CCorePlugin.log(e); } } @@ -1023,10 +1022,11 @@ public class TranslationUnit extends Openable implements ITranslationUnit { ICElement[] children; try { children= getChildren(); - } catch (CModelException exc) { - CCorePlugin.log(exc); + } catch (CModelException e) { + CCorePlugin.log(e); return null; } + switch (elementType) { case ICElement.C_FUNCTION: case ICElement.C_FUNCTION_DECLARATION: