From b4825df6af2298f9007ee95ab5f16ed4b855ef4a Mon Sep 17 00:00:00 2001 From: Seo Sanghyeon Date: Fri, 4 Jul 2008 09:32:15 +0000 Subject: [PATCH] Fix warnings git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53133 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 6 +++--- 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(I[idx]); } + Expr * operator[](size_t idx) const { return cast(I[idx]); } signed operator-(const ConstExprIterator& R) const { return I - R.I; } - Expr * const operator*() const { return cast(*I); } - Expr * const operator->() const { return cast(*I); } + Expr * operator*() const { return cast(*I); } + Expr * operator->() const { return cast(*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 = -- 2.40.0