Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2011-02-25 20:31:44 -0500
committerAlena Laskavaia2011-02-25 20:31:44 -0500
commit7e3b1acf38c76ebdb9c80ffa81d7185de13f5568 (patch)
tree12f5dbaa2b95794da77a204d4ba29cabc7ce1666 /codan/org.eclipse.cdt.codan.examples
parent5a695e5cf53ffbd02bfb203781cbd3690b75e169 (diff)
downloadorg.eclipse.cdt-7e3b1acf38c76ebdb9c80ffa81d7185de13f5568.tar.gz
org.eclipse.cdt-7e3b1acf38c76ebdb9c80ffa81d7185de13f5568.tar.xz
org.eclipse.cdt-7e3b1acf38c76ebdb9c80ffa81d7185de13f5568.zip
fixed checker which was broken after my prev refactoring
Diffstat (limited to 'codan/org.eclipse.cdt.codan.examples')
-rw-r--r--codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/NamingConventionFunctionIIndexChecker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/NamingConventionFunctionIIndexChecker.java b/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/NamingConventionFunctionIIndexChecker.java
index 3105617b63..cdecedcf38 100644
--- a/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/NamingConventionFunctionIIndexChecker.java
+++ b/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/NamingConventionFunctionIIndexChecker.java
@@ -46,7 +46,7 @@ public class NamingConventionFunctionIIndexChecker extends AbstractCIndexChecker
unit.accept(new ICElementVisitor() {
public boolean visit(ICElement element) {
if (element.getElementType() == ICElement.C_FUNCTION) {
- String parameter = (String) pt.getPreference().getValue();
+ String parameter = (String) getPreference(pt, PARAM_KEY);
Pattern pattern = Pattern.compile(parameter);
String name = element.getElementName();
if (!pattern.matcher(name).find()) {

Back to the top