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

Bruce Mitchener bruce.mitchener at gmail.com
Fri Jul 3 07:08:55 PDT 2015


brucem created this revision.
brucem added reviewers: abidh, ki.stfu.
brucem added a subscriber: lldb-commits.

Remove unnecessary const_cast.

http://reviews.llvm.org/D10928

Files:
  tools/lldb-mi/MICmdArgValFile.cpp

Index: tools/lldb-mi/MICmdArgValFile.cpp
===================================================================
--- tools/lldb-mi/MICmdArgValFile.cpp
+++ 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.29020.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150703/1b424383/attachment.bin>


More information about the lldb-commits mailing list