This revision was automatically updated to reflect the committed changes. Closed by commit rL241359: [lldb-mi] Remove unnecessary const_cast. (authored by brucem).
Changed prior to commit: http://reviews.llvm.org/D10928?vs=29020&id=29028#toc Repository: rL LLVM http://reviews.llvm.org/D10928 Files: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp Index: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp =================================================================== --- lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp +++ lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp @@ -182,7 +182,7 @@ 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;
Index: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp =================================================================== --- lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp +++ lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp @@ -182,7 +182,7 @@ 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;
_______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits