[cfe-commits] r108803 - /cfe/trunk/lib/Checker/CFRefCount.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Mon Jul 19 19:53:15 PDT 2010
Author: zhongxingxu
Date: Mon Jul 19 21:53:15 2010
New Revision: 108803
URL: http://llvm.org/viewvc/llvm-project?rev=108803&view=rev
Log:
remove const_cast.
Modified:
cfe/trunk/lib/Checker/CFRefCount.cpp
Modified: cfe/trunk/lib/Checker/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/CFRefCount.cpp?rev=108803&r1=108802&r2=108803&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Checker/CFRefCount.cpp Mon Jul 19 21:53:15 2010
@@ -82,8 +82,7 @@
static const ObjCMethodDecl*
ResolveToInterfaceMethodDecl(const ObjCMethodDecl *MD) {
- ObjCInterfaceDecl *ID =
- const_cast<ObjCInterfaceDecl*>(MD->getClassInterface());
+ const ObjCInterfaceDecl *ID = MD->getClassInterface();
return MD->isInstanceMethod()
? ID->lookupInstanceMethod(MD->getSelector())
More information about the cfe-commits
mailing list