diff options
author | Seo Sanghyeon <sanxiyn@gmail.com> | 2008-07-04 09:32:15 +0000 |
---|---|---|
committer | Seo Sanghyeon <sanxiyn@gmail.com> | 2008-07-04 09:32:15 +0000 |
commit | b4825df6af2298f9007ee95ab5f16ed4b855ef4a (patch) | |
tree | c3c2a4fdfe6f0c96316ca3cb6f0460614cf71897 | |
parent | 489f7b64199b054128452c903cf18bb3daa71444 (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.h | 6 | ||||
-rw-r--r-- | include/clang/Parse/DeclSpec.h | 2 |
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 = |