Skip to content

Commit d151ad6

Browse files
[lldb] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#139395)
1 parent cb0f6d0 commit d151ad6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/source/API/SBSaveCoreOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ uint64_t SBSaveCoreOptions::GetCurrentSizeInBytes(SBError &error) {
129129
}
130130

131131
lldb_private::SaveCoreOptions &SBSaveCoreOptions::ref() const {
132-
return *m_opaque_up.get();
132+
return *m_opaque_up;
133133
}

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class ClangExpressionDeclMap : public ClangASTSource {
344344

345345
/// Activate parser-specific variables
346346
void EnableParserVars() {
347-
if (!m_parser_vars.get())
347+
if (!m_parser_vars)
348348
m_parser_vars = std::make_unique<ParserVars>();
349349
}
350350

@@ -371,7 +371,7 @@ class ClangExpressionDeclMap : public ClangASTSource {
371371

372372
/// Activate struct variables
373373
void EnableStructVars() {
374-
if (!m_struct_vars.get())
374+
if (!m_struct_vars)
375375
m_struct_vars.reset(new struct StructVars);
376376
}
377377

0 commit comments

Comments
 (0)