mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed checker which was broken after my prev refactoring
This commit is contained in:
parent
5a695e5cf5
commit
7e3b1acf38
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue