[Lldb-commits] [lldb] r262920 - Use c_str() instead of GetCString() to fix build

Ewan Crawford via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 8 02:03:24 PST 2016


Author: ewancrawford
Date: Tue Mar  8 04:03:23 2016
New Revision: 262920

URL: http://llvm.org/viewvc/llvm-project?rev=262920&view=rev
Log:
Use c_str() instead of GetCString() to fix build 


Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=262920&r1=262919&r2=262920&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Tue Mar  8 04:03:23 2016
@@ -461,7 +461,7 @@ CommandInterpreter::Initialize ()
         AddAlias ("run", cmd_obj_sp, "--shell-expand-args true --");
     #else
         StreamString defaultshell;
-        defaultshell.Printf("--shell=%s --", HostInfo::GetDefaultShell().GetPath().GetCString());
+        defaultshell.Printf("--shell=%s --", HostInfo::GetDefaultShell().GetPath().c_str());
         AddAlias ("r", cmd_obj_sp, defaultshell.GetData());
         AddAlias ("run", cmd_obj_sp, defaultshell.GetData());
     #endif




More information about the lldb-commits mailing list