[Lldb-commits] [PATCH] D10928: Remove unnecessary const_cast.

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


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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10928.29028.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150703/66117bbf/attachment.bin>


More information about the lldb-commits mailing list