Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-12-05 22:48:09 -0500
committerSergey Prigogin2011-12-05 22:57:17 -0500
commit693a79de5e0523e50843baa4eac7daa8a183b66d (patch)
treec47f9acccb7d3f85d20731fa967a6c3dc649ae11 /codan/org.eclipse.cdt.codan.checkers
parentb140bf8ba6e96869a322826338b86beb777db5b5 (diff)
downloadorg.eclipse.cdt-693a79de5e0523e50843baa4eac7daa8a183b66d.tar.gz
org.eclipse.cdt-693a79de5e0523e50843baa4eac7daa8a183b66d.tar.xz
org.eclipse.cdt-693a79de5e0523e50843baa4eac7daa8a183b66d.zip
Fixed typos.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.checkers')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ClassMembersInitializationChecker.java14
1 files changed, 7 insertions, 7 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 c0d16049b3..5de06044fc 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
@@ -98,8 +98,8 @@ public class ClassMembersInitializationChecker extends AbstractIndexAstChecker {
public int visit(IASTExpression expression) {
if (!constructorsStack.empty() && expression instanceof IASTFunctionCallExpression) {
- Set<IField> actualContructorFields = constructorsStack.peek();
- if (!actualContructorFields.isEmpty()) {
+ Set<IField> actualConstructorFields = constructorsStack.peek();
+ if (!actualConstructorFields.isEmpty()) {
boolean skipCurrentConstructor = false;
IASTFunctionCallExpression fCall = (IASTFunctionCallExpression)expression;
IASTExpression fNameExp = fCall.getFunctionNameExpression();
@@ -108,7 +108,7 @@ public class ClassMembersInitializationChecker extends AbstractIndexAstChecker {
IBinding fBinding = fName.getName().resolveBinding();
if (fBinding instanceof ICPPMethod) {
ICPPMethod method = (ICPPMethod)fBinding;
- ICompositeType constructorOwner = actualContructorFields.iterator().next().getCompositeTypeOwner();
+ ICompositeType constructorOwner = actualConstructorFields.iterator().next().getCompositeTypeOwner();
if (constructorOwner == method.getClassOwner() && !method.getType().isConst()) {
skipCurrentConstructor = true;
}
@@ -152,12 +152,12 @@ public class ClassMembersInitializationChecker extends AbstractIndexAstChecker {
public int visit(IASTName name) {
if (!constructorsStack.empty()) {
- Set<IField> actualContructorFields = constructorsStack.peek();
- if (!actualContructorFields.isEmpty()) {
+ Set<IField> actualConstructorFields = constructorsStack.peek();
+ if (!actualConstructorFields.isEmpty()) {
IBinding binding = name.resolveBinding();
- if (actualContructorFields.contains(binding)) {
+ if (actualConstructorFields.contains(binding)) {
if ((CPPVariableReadWriteFlags.getReadWriteFlags(name) & PDOMName.WRITE_ACCESS) != 0) {
- actualContructorFields.remove(binding);
+ actualConstructorFields.remove(binding);
}
}
}

Back to the top