summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckName.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-12-01 12:46:15 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-12-01 12:46:23 +0100
commit7c7ce13ac09d1a3a3807d0f4fea97688554d28d3 (patch)
tree9c73a3a6743ec973c0b7ec5cce9404a13bbbd9a0 /src/shared/cplusplus/CheckName.h
parentf2e77fb8fd2f3c06ccb7ab922bbde6a4f7a1f7f0 (diff)
downloadqt-creator-7c7ce13ac09d1a3a3807d0f4fea97688554d28d3.tar.gz
Use const names.
Diffstat (limited to 'src/shared/cplusplus/CheckName.h')
-rw-r--r--src/shared/cplusplus/CheckName.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/cplusplus/CheckName.h b/src/shared/cplusplus/CheckName.h
index 7f86d75167..1484cb7848 100644
--- a/src/shared/cplusplus/CheckName.h
+++ b/src/shared/cplusplus/CheckName.h
@@ -61,13 +61,13 @@ public:
CheckName(Semantic *semantic);
virtual ~CheckName();
- Name *check(NameAST *name, Scope *scope);
- Name *check(NestedNameSpecifierListAST *name, Scope *scope);
- Name *check(ObjCSelectorAST *args, Scope *scope);
+ const Name *check(NameAST *name, Scope *scope);
+ const Name *check(NestedNameSpecifierListAST *name, Scope *scope);
+ const Name *check(ObjCSelectorAST *args, Scope *scope);
void check(ObjCMessageArgumentDeclarationAST *arg, Scope *scope);
protected:
- Name *switchName(Name *name);
+ const Name *switchName(const Name *name);
Scope *switchScope(Scope *scope);
using ASTVisitor::visit;
@@ -85,7 +85,7 @@ protected:
virtual bool visit(ObjCMessageArgumentDeclarationAST *ast);
private:
- Name *_name;
+ const Name *_name;
Scope *_scope;
};