Use c_str() instead of GetCString() to fix build
authorEwan Crawford <ewan@codeplay.com>
Tue, 8 Mar 2016 10:03:23 +0000 (10:03 +0000)
committerEwan Crawford <ewan@codeplay.com>
Tue, 8 Mar 2016 10:03:23 +0000 (10:03 +0000)
llvm-svn: 262920

lldb/source/Interpreter/CommandInterpreter.cpp

index 2e46687..3733ac1 100644 (file)
@@ -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