From f490ac49d285662f963bea938450370ed7986d9b Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Tue, 9 Mar 2004 21:45:12 +0000 Subject: [PATCH] patch from chris w. dealing with CConvention --- core/org.eclipse.cdt.core/ChangeLog | 8 ++++++++ .../src/org/eclipse/cdt/core/CConventions.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/ChangeLog b/core/org.eclipse.cdt.core/ChangeLog index d16ae20d694..f98f2807013 100644 --- a/core/org.eclipse.cdt.core/ChangeLog +++ b/core/org.eclipse.cdt.core/ChangeLog @@ -1,3 +1,11 @@ +2004-03-09 Alain Magloire + + Patch from Chris Wiebe + CConventions.validateClassName() where the + scope resolution operator :: is parsed incorrectly. + + * src/org/eclipse/cdt/core/CConventions.java + 2004-03-08 Alain Magloire In the Editor if the changes are discarded i.e. diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java index 02abd946df9..978a6160f15 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CConventions.java @@ -95,7 +95,7 @@ public class CConventions { if (!status.isOK()) { return status; } - String type = name.substring(index + 1).trim(); + String type = name.substring(index + scopeResolutionOperator.length()).trim(); scannedID = type.toCharArray(); }