aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2008-07-04 09:32:15 +0000
committerSeo Sanghyeon <sanxiyn@gmail.com>2008-07-04 09:32:15 +0000
commitb4825df6af2298f9007ee95ab5f16ed4b855ef4a (patch)
treec3c2a4fdfe6f0c96316ca3cb6f0460614cf71897
parent489f7b64199b054128452c903cf18bb3daa71444 (diff)
Fix warnings
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53133 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h6
-rw-r--r--include/clang/Parse/DeclSpec.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index e821cc3910..afe1c4bb36 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -177,10 +177,10 @@ public:
ConstExprIterator& operator++() { ++I; return *this; }
ConstExprIterator operator+(size_t i) { return I+i; }
ConstExprIterator operator-(size_t i) { return I-i; }
- Expr * const operator[](size_t idx) { return cast<Expr>(I[idx]); }
+ Expr * operator[](size_t idx) const { return cast<Expr>(I[idx]); }
signed operator-(const ConstExprIterator& R) const { return I - R.I; }
- Expr * const operator*() const { return cast<Expr>(*I); }
- Expr * const operator->() const { return cast<Expr>(*I); }
+ Expr * operator*() const { return cast<Expr>(*I); }
+ Expr * operator->() const { return cast<Expr>(*I); }
bool operator==(const ConstExprIterator& R) const { return I == R.I; }
bool operator!=(const ConstExprIterator& R) const { return I != R.I; }
bool operator>(const ConstExprIterator& R) const { return I > R.I; }
diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h
index dc769951fe..efe726d8bc 100644
--- a/include/clang/Parse/DeclSpec.h
+++ b/include/clang/Parse/DeclSpec.h
@@ -337,7 +337,7 @@ public:
void setObjCDeclQualifier(ObjCDeclQualifier DQVal)
{ objcDeclQualifier = (ObjCDeclQualifier) (objcDeclQualifier | DQVal); }
- const ObjCPropertyAttributeKind getPropertyAttributes() const
+ ObjCPropertyAttributeKind getPropertyAttributes() const
{ return ObjCPropertyAttributeKind(PropertyAttributes); }
void setPropertyAttributes(ObjCPropertyAttributeKind PRVal) {
PropertyAttributes =