diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-12-20 21:02:55 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-12-20 21:02:55 +0000 |
commit | 3447077a2878b71e0ced355f9a92a815706a0b11 (patch) | |
tree | 9568b7fc75bb6345952fa01bc71bda11454d507e /lldb/source/API/SBSymbolContextList.cpp | |
parent | 0a90d7c92b1fa5b7193e7b0e1e0314ab46e76b70 (diff) | |
download | bcm5719-llvm-3447077a2878b71e0ced355f9a92a815706a0b11.tar.gz bcm5719-llvm-3447077a2878b71e0ced355f9a92a815706a0b11.zip |
[API] Remove redundants get() from smart pointers. NFC
Removes redundant calls to ::get() from smart pointers in the source/API
directory..
llvm-svn: 349821
Diffstat (limited to 'lldb/source/API/SBSymbolContextList.cpp')
-rw-r--r-- | lldb/source/API/SBSymbolContextList.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/API/SBSymbolContextList.cpp b/lldb/source/API/SBSymbolContextList.cpp index 8cc29c3422d..b07ab2afd55 100644 --- a/lldb/source/API/SBSymbolContextList.cpp +++ b/lldb/source/API/SBSymbolContextList.cpp @@ -31,14 +31,14 @@ operator=(const SBSymbolContextList &rhs) { } uint32_t SBSymbolContextList::GetSize() const { - if (m_opaque_ap.get()) + if (m_opaque_ap) return m_opaque_ap->GetSize(); return 0; } SBSymbolContext SBSymbolContextList::GetContextAtIndex(uint32_t idx) { SBSymbolContext sb_sc; - if (m_opaque_ap.get()) { + if (m_opaque_ap) { SymbolContext sc; if (m_opaque_ap->GetContextAtIndex(idx, sc)) { sb_sc.SetSymbolContext(&sc); @@ -48,7 +48,7 @@ SBSymbolContext SBSymbolContextList::GetContextAtIndex(uint32_t idx) { } void SBSymbolContextList::Clear() { - if (m_opaque_ap.get()) + if (m_opaque_ap) m_opaque_ap->Clear(); } @@ -62,7 +62,7 @@ void SBSymbolContextList::Append(SBSymbolContextList &sc_list) { m_opaque_ap->Append(*sc_list); } -bool SBSymbolContextList::IsValid() const { return m_opaque_ap.get() != NULL; } +bool SBSymbolContextList::IsValid() const { return m_opaque_ap != NULL; } lldb_private::SymbolContextList *SBSymbolContextList::operator->() const { return m_opaque_ap.get(); @@ -70,12 +70,12 @@ lldb_private::SymbolContextList *SBSymbolContextList::operator->() const { lldb_private::SymbolContextList &SBSymbolContextList::operator*() const { assert(m_opaque_ap.get()); - return *m_opaque_ap.get(); + return *m_opaque_ap; } bool SBSymbolContextList::GetDescription(lldb::SBStream &description) { Stream &strm = description.ref(); - if (m_opaque_ap.get()) + if (m_opaque_ap) m_opaque_ap->GetDescription(&strm, lldb::eDescriptionLevelFull, NULL); return true; } |