1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 21:35:40 +02:00

Added call to super() to initialize common parameters

This commit is contained in:
Alena Laskavaia 2010-06-04 02:31:10 +00:00
parent 70a8342263
commit 21c3683028
3 changed files with 3 additions and 0 deletions

View file

@ -67,6 +67,7 @@ public class NamingConventionFunctionChecker extends AbstractIndexAstChecker
* (org.eclipse.cdt.codan.core.model.IProblemWorkingCopy)
*/
public void initPreferences(IProblemWorkingCopy problem) {
super.initPreferences(problem);
addPreference(
problem,
PARAM_KEY,

View file

@ -164,6 +164,7 @@ public class ReturnChecker extends AbstractAstFunctionChecker {
/* checker must implement @link ICheckerWithPreferences */
public void initPreferences(IProblemWorkingCopy problem) {
super.initPreferences(problem);
if (problem.getId().equals(RET_NO_VALUE_ID)
|| problem.getId().equals(RET_NORET_ID)) {
addPreference(problem, PARAM_IMPLICIT,

View file

@ -127,6 +127,7 @@ public class StatementHasNoEffectChecker extends AbstractIndexAstChecker {
}
public void initPreferences(IProblemWorkingCopy problem) {
super.initPreferences(problem);
addPreference(problem, PARAM_MACRO_ID,
CheckersMessages.StatementHasNoEffectChecker_ParameterMacro,
Boolean.TRUE);