Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2012-03-05 01:31:48 -0500
committerMarc-Andre Laperle2012-03-05 01:31:48 -0500
commite912eb6f3291d431164efac553036c6ccc93d1f6 (patch)
tree1526328b124205d78f9cd28f2654c1e468a3ff05 /codan/org.eclipse.cdt.codan.checkers
parent4af78ed0b224843453d3aedb3f37ed3a41250067 (diff)
downloadorg.eclipse.cdt-e912eb6f3291d431164efac553036c6ccc93d1f6.tar.gz
org.eclipse.cdt-e912eb6f3291d431164efac553036c6ccc93d1f6.tar.xz
org.eclipse.cdt-e912eb6f3291d431164efac553036c6ccc93d1f6.zip
Bug 372009 - Wrong class name in NonVirtualDestructor warning
Diffstat (limited to 'codan/org.eclipse.cdt.codan.checkers')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NonVirtualDestructor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NonVirtualDestructor.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NonVirtualDestructor.java
index 84c697677a..db7235a730 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NonVirtualDestructor.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NonVirtualDestructor.java
@@ -9,6 +9,7 @@
* Alena Laskavaia - initial API and implementation
* Patrick Hofer [bug 315528]
* Sergey Prigogin (Google)
+ * Marc-Andre Laperle
*******************************************************************************/
package org.eclipse.cdt.codan.internal.checkers;
@@ -117,7 +118,7 @@ public class NonVirtualDestructor extends AbstractIndexAstChecker {
node = decls[0];
}
}
- reportProblem(PROBLEM_ID, node, className.getSimpleID().toString(),
+ reportProblem(PROBLEM_ID, node, new String(className.getSimpleID()),
virtualMethod.getName());
return PROCESS_SKIP;
}

Back to the top