[cfe-commits] r172370 - /cfe/trunk/lib/AST/InheritViz.cpp
Dmitri Gribenko
gribozavr at gmail.com
Sun Jan 13 16:25:25 PST 2013
Author: gribozavr
Date: Sun Jan 13 18:25:25 2013
New Revision: 172370
URL: http://llvm.org/viewvc/llvm-project?rev=172370&view=rev
Log:
Remove an unneeded const_cast
Modified:
cfe/trunk/lib/AST/InheritViz.cpp
Modified: cfe/trunk/lib/AST/InheritViz.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/InheritViz.cpp?rev=172370&r1=172369&r2=172370&view=diff
==============================================================================
--- cfe/trunk/lib/AST/InheritViz.cpp (original)
+++ cfe/trunk/lib/AST/InheritViz.cpp Sun Jan 13 18:25:25 2013
@@ -134,7 +134,7 @@
/// viewInheritance - Display the inheritance hierarchy of this C++
/// class using GraphViz.
void CXXRecordDecl::viewInheritance(ASTContext& Context) const {
- QualType Self = Context.getTypeDeclType(const_cast<CXXRecordDecl *>(this));
+ QualType Self = Context.getTypeDeclType(this);
std::string ErrMsg;
sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg);
if (Filename.isEmpty()) {
More information about the cfe-commits
mailing list