From: Zhongxing Xu Date: Tue, 20 Jul 2010 02:53:15 +0000 (+0000) Subject: remove const_cast. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf9c2b2e93bd21ba57d12efee17fc8d7f3ea8561;p=clang remove const_cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108803 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Checker/CFRefCount.cpp b/lib/Checker/CFRefCount.cpp index 3c74cd8f9b..d35f247f75 100644 --- a/lib/Checker/CFRefCount.cpp +++ b/lib/Checker/CFRefCount.cpp @@ -82,8 +82,7 @@ public: static const ObjCMethodDecl* ResolveToInterfaceMethodDecl(const ObjCMethodDecl *MD) { - ObjCInterfaceDecl *ID = - const_cast(MD->getClassInterface()); + const ObjCInterfaceDecl *ID = MD->getClassInterface(); return MD->isInstanceMethod() ? ID->lookupInstanceMethod(MD->getSelector())