[Lldb-commits] [lldb] r142402 - /lldb/trunk/source/Host/common/FileSpec.cpp

Johnny Chen johnny.chen at apple.com
Tue Oct 18 12:28:30 PDT 2011


Author: johnny
Date: Tue Oct 18 14:28:30 2011
New Revision: 142402

URL: http://llvm.org/viewvc/llvm-project?rev=142402&view=rev
Log:
Fix build under gcc.

Patch from Dawn.

Modified:
    lldb/trunk/source/Host/common/FileSpec.cpp

Modified: lldb/trunk/source/Host/common/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/FileSpec.cpp?rev=142402&r1=142401&r2=142402&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/FileSpec.cpp (original)
+++ lldb/trunk/source/Host/common/FileSpec.cpp Tue Oct 18 14:28:30 2011
@@ -711,7 +711,7 @@
     if (filename == NULL)
         return ConstString();
     
-    char* dot_pos = strrchr(filename, '.');
+    const char* dot_pos = strrchr(filename, '.');
     if (dot_pos == NULL)
         return ConstString();
     
@@ -725,7 +725,7 @@
     if (filename == NULL)
         return ConstString();
     
-    char* dot_pos = strrchr(filename, '.');
+    const char* dot_pos = strrchr(filename, '.');
     if (dot_pos == NULL)
         return m_filename;
     





More information about the lldb-commits mailing list