зеркало из https://github.com/microsoft/clang-1.git
Remove an unneeded const_cast
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1c030e9a3f
Коммит
0446f51e1c
|
@ -134,7 +134,7 @@ InheritanceHierarchyWriter::WriteNodeReference(QualType Type,
|
|||
/// 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()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче