[Lldb-commits] [lldb] r241359 - [lldb-mi] Remove unnecessary const_cast.

Bruce Mitchener bruce.mitchener at gmail.com
Fri Jul 3 08:31:32 PDT 2015


Author: brucem
Date: Fri Jul  3 10:31:32 2015
New Revision: 241359

URL: http://llvm.org/viewvc/llvm-project?rev=241359&view=rev
Log:
[lldb-mi] Remove unnecessary const_cast.

Summary: Remove unnecessary const_cast.

Reviewers: abidh, ki.stfu

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D10928

Modified:
    lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp

Modified: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp?rev=241359&r1=241358&r2=241359&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp Fri Jul  3 10:31:32 2015
@@ -182,7 +182,7 @@ bool
 CMICmdArgValFile::IsValidChars(const CMIUtilString &vrText) const
 {
     static CMIUtilString s_strSpecialCharacters(".'\"`@#$%^&*()_+-={}[]| ");
-    const char *pPtr = const_cast<char *>(vrText.c_str());
+    const char *pPtr = vrText.c_str();
     for (MIuint i = 0; i < vrText.length(); i++, pPtr++)
     {
         const char c = *pPtr;





More information about the lldb-commits mailing list