From e50848b1766469509c80782229986ea06b6edb0f Mon Sep 17 00:00:00 2001 From: John Camelon Date: Thu, 15 Apr 2004 17:55:20 +0000 Subject: [PATCH] Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=57928 --- core/org.eclipse.cdt.ui/ChangeLog | 3 +++ .../cdt/internal/ui/text/contentassist/CompletionEngine.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index 9e95dfa8387..8e43465f5b9 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,6 @@ +2004-04-15 John Camelon + Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=57928 + 2004-04-14 Alain Magloire Remove the contribution for header doing this will force diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java index cf3d222ad2f..c26d646e33f 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java @@ -183,7 +183,8 @@ public class CompletionEngine implements RelevanceConstants { // start timer elementRequestor.startTimer(); - long parserTime = System.currentTimeMillis(); + long parserTime = System.currentTimeMillis(); + macroMap = null; result = parser.parse(completionOffset); log("Time spent in Parser = "+ ( System.currentTimeMillis() - parserTime ) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$