Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorAlena Laskavaia2009-11-21 02:25:12 +0000
committerAlena Laskavaia2009-11-21 02:25:12 +0000
commita2908eaedf19ab728a8693fed7a5367de5172539 (patch)
tree46fdc0aea05ac56e5ec8afb301b3c4b09bf8124b /codan
parent0e300b754c640d180b1d1fa3dac61fb6ecc436fc (diff)
downloadorg.eclipse.cdt-a2908eaedf19ab728a8693fed7a5367de5172539.tar.gz
org.eclipse.cdt-a2908eaedf19ab728a8693fed7a5367de5172539.tar.xz
org.eclipse.cdt-a2908eaedf19ab728a8693fed7a5367de5172539.zip
- adjusted ast node for error result
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/CatchUsesReference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/CatchUsesReference.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/CatchUsesReference.java
index d1ad9aae1a5..b3556ccbd7f 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/CatchUsesReference.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/CatchUsesReference.java
@@ -46,7 +46,7 @@ public class CatchUsesReference extends AbstractIndexAstChecker {
for (int i = 0; i < catchHandlers.length; i++) {
ICPPASTCatchHandler catchHandler = catchHandlers[i];
if (usesReference(catchHandler)) {
- reportProblem(ER_ID, catchHandler, "Catch clause uses reference in declaration of exception");
+ reportProblem(ER_ID, catchHandler.getDeclaration(), "Catch clause uses reference in declaration of exception");
}
}

Back to the top