]> granicus.if.org Git - clang/commitdiff
remove const_cast.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 20 Jul 2010 02:53:15 +0000 (02:53 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 20 Jul 2010 02:53:15 +0000 (02:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108803 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/CFRefCount.cpp

index 3c74cd8f9b273f785f9a6ae9996a1c426566a89a..d35f247f75fe42fd0180387ab1582881d9592f9e 100644 (file)
@@ -82,8 +82,7 @@ public:
 
 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())