summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
index 4081bc990c9..7bb784e8f9a 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
@@ -60,7 +60,7 @@ void ASTStructExtractor::ExtractFromFunctionDecl(FunctionDecl *F) {
RecordDecl *struct_decl = NULL;
- StringRef desired_name(m_struct_name.c_str());
+ StringRef desired_name(m_struct_name);
for (CompoundStmt::const_body_iterator bi = body_compound_stmt->body_begin(),
be = body_compound_stmt->body_end();
@@ -125,7 +125,7 @@ void ASTStructExtractor::ExtractFromTopLevelDecl(Decl *D) {
if (m_ast_context && function_decl &&
!m_function.m_wrapper_function_name.compare(
- function_decl->getNameAsString().c_str())) {
+ function_decl->getNameAsString())) {
ExtractFromFunctionDecl(function_decl);
}
}
OpenPOWER on IntegriCloud