summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-06-27 23:01:18 -0400
committerSergey Prigogin2012-06-27 23:01:18 -0400
commit3b5ee13aeb2492e1b836ef43feb39dbc4c3a8802 (patch)
tree20a3ae675cd2bc36f15f97c91774d2fabc74d48b
parentd97e3d63f3ed8e7d747187554817e809e044a3fa (diff)
downloadorg.eclipse.cdt-3b5ee13aeb2492e1b836ef43feb39dbc4c3a8802.tar.gz
org.eclipse.cdt-3b5ee13aeb2492e1b836ef43feb39dbc4c3a8802.tar.xz
org.eclipse.cdt-3b5ee13aeb2492e1b836ef43feb39dbc4c3a8802.zip
Bug 383706. Restored accidentally commented out code.
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java
index 24954aaffe..2b7ba944fc 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java
@@ -248,8 +248,8 @@ public class ClassMembersInitializationChecker extends AbstractIndexAstChecker {
private ICPPConstructor getConstructor(IASTDeclaration decl) {
if (decl instanceof ICPPASTFunctionDefinition) {
ICPPASTFunctionDefinition functionDefinition = (ICPPASTFunctionDefinition) decl;
-// if (functionDefinition.isDeleted())
-// return null;
+ if (functionDefinition.isDeleted())
+ return null;
IBinding binding = functionDefinition.getDeclarator().getName().resolveBinding();
if (binding instanceof ICPPConstructor) {
ICPPConstructor constructor = (ICPPConstructor) binding;