Erase from a string instead of using substr when you don't really need to.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130013 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index 1eb67a8..a36d9c2 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -956,7 +956,7 @@
         std::string white_space (" \t\v");
         size_t pos = remainder.find_first_not_of (white_space);
         if (pos != 0 && pos != std::string::npos)
-            remainder = remainder.substr (pos);
+            remainder.erase(0, pos);
 
         if (log)
             log->Printf ("HandleCommand, command line after removing command name(s): '%s'\n", remainder.c_str());