[cfe-commits] r137218 - /cfe/trunk/tools/libclang/CXCursor.cpp
Douglas Gregor
dgregor at apple.com
Wed Aug 10 09:34:38 PDT 2011
Author: dgregor
Date: Wed Aug 10 11:34:38 2011
New Revision: 137218
URL: http://llvm.org/viewvc/llvm-project?rev=137218&view=rev
Log:
Switch a C-style cast over to a const_cast. No functionality change
Modified:
cfe/trunk/tools/libclang/CXCursor.cpp
Modified: cfe/trunk/tools/libclang/CXCursor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXCursor.cpp?rev=137218&r1=137217&r2=137218&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXCursor.cpp (original)
+++ cfe/trunk/tools/libclang/CXCursor.cpp Wed Aug 10 11:34:38 2011
@@ -604,7 +604,7 @@
Sema &S = unit->getSema();
CodeCompletionAllocator *Allocator
= unit->getCursorCompletionAllocator().getPtr();
- CodeCompletionResult Result((IdentifierInfo *)MacroInfo);
+ CodeCompletionResult Result(const_cast<IdentifierInfo *>(MacroInfo));
CodeCompletionString *String
= Result.CreateCodeCompletionString(S, *Allocator);
return String;
More information about the cfe-commits
mailing list