diff options
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 35e12ebdb57..b6e6e94d846 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -711,7 +711,7 @@ FileSpec::GetFileNameExtension () const 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 @@ FileSpec::GetFileNameStrippingExtension () const if (filename == NULL) return ConstString(); - char* dot_pos = strrchr(filename, '.'); + const char* dot_pos = strrchr(filename, '.'); if (dot_pos == NULL) return m_filename; |