[API] Remove redundants get() from smart pointers. NFC
Removes redundant calls to ::get() from smart pointers in the source/API
directory..
llvm-svn: 349821
diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp
index 0adf3bb..82b464b 100644
--- a/lldb/source/API/SBValueList.cpp
+++ b/lldb/source/API/SBValueList.cpp
@@ -99,7 +99,7 @@
SBValueList::~SBValueList() {}
-bool SBValueList::IsValid() const { return (m_opaque_ap.get() != NULL); }
+bool SBValueList::IsValid() const { return (m_opaque_ap != NULL); }
void SBValueList::Clear() { m_opaque_ap.reset(); }
@@ -150,7 +150,7 @@
// idx);
SBValue sb_value;
- if (m_opaque_ap.get())
+ if (m_opaque_ap)
sb_value = m_opaque_ap->GetValueAtIndex(idx);
if (log) {
@@ -172,7 +172,7 @@
// log->Printf ("SBValueList::GetSize ()");
uint32_t size = 0;
- if (m_opaque_ap.get())
+ if (m_opaque_ap)
size = m_opaque_ap->GetSize();
if (log)
@@ -183,20 +183,20 @@
}
void SBValueList::CreateIfNeeded() {
- if (m_opaque_ap.get() == NULL)
+ if (m_opaque_ap == NULL)
m_opaque_ap.reset(new ValueListImpl());
}
SBValue SBValueList::FindValueObjectByUID(lldb::user_id_t uid) {
SBValue sb_value;
- if (m_opaque_ap.get())
+ if (m_opaque_ap)
sb_value = m_opaque_ap->FindValueByUID(uid);
return sb_value;
}
SBValue SBValueList::GetFirstValueByName(const char *name) const {
SBValue sb_value;
- if (m_opaque_ap.get())
+ if (m_opaque_ap)
sb_value = m_opaque_ap->GetFirstValueByName(name);
return sb_value;
}
@@ -205,5 +205,5 @@
ValueListImpl &SBValueList::ref() {
CreateIfNeeded();
- return *m_opaque_ap.get();
+ return *m_opaque_ap;
}