r174283 - libclang: remove unneeded const_cast

Dmitri Gribenko gribozavr at gmail.com
Sun Feb 3 05:26:20 PST 2013


Author: gribozavr
Date: Sun Feb  3 07:26:20 2013
New Revision: 174283

URL: http://llvm.org/viewvc/llvm-project?rev=174283&view=rev
Log:
libclang: remove unneeded const_cast

Modified:
    cfe/trunk/tools/libclang/CIndexUSRs.cpp

Modified: cfe/trunk/tools/libclang/CIndexUSRs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexUSRs.cpp?rev=174283&r1=174282&r2=174283&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexUSRs.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexUSRs.cpp Sun Feb  3 07:26:20 2013
@@ -810,7 +810,7 @@ bool cxcursor::getDeclCursorUSR(const De
     return true;
 
   USRGenerator UG(&D->getASTContext(), &Buf);
-  UG->Visit(const_cast<Decl*>(D));
+  UG->Visit(D);
 
   if (UG->ignoreResults())
     return true;





More information about the cfe-commits mailing list