diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-10-19 16:51:38 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-10-19 16:51:38 +0000 |
commit | 8cfabf2cb278efc1f694f1d9aab76888a60ee3ac (patch) | |
tree | 9f08e5687c50325e270404f309616dc1459273a0 /lib/AST/CommentDumper.cpp | |
parent | 535a5d001b2035a7aa68ee368fbe44ec90e33740 (diff) |
Remove const_casts by propagating constness down to called functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentDumper.cpp')
-rw-r--r-- | lib/AST/CommentDumper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/CommentDumper.cpp b/lib/AST/CommentDumper.cpp index 18ba47ff6c..18d3406217 100644 --- a/lib/AST/CommentDumper.cpp +++ b/lib/AST/CommentDumper.cpp @@ -188,7 +188,7 @@ void CommentDumper::visitParamCommandComment(const ParamCommandComment *C) { if (C->hasParamName()) { if (C->isParamIndexValid()) - OS << " Param=\"" << C->getParamName(const_cast<FullComment*>(FC)) << "\""; + OS << " Param=\"" << C->getParamName(FC) << "\""; else OS << " Param=\"" << C->getParamNameAsWritten() << "\""; } @@ -202,7 +202,7 @@ void CommentDumper::visitTParamCommandComment(const TParamCommandComment *C) { if (C->hasParamName()) { if (C->isPositionValid()) - OS << " Param=\"" << C->getParamName(const_cast<FullComment*>(FC)) << "\""; + OS << " Param=\"" << C->getParamName(FC) << "\""; else OS << " Param=\"" << C->getParamNameAsWritten() << "\""; } |