This repository was archived by the owner on Jan 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ SBTypeFilter::SBTypeFilter(const lldb::TypeFilterImplSP &typefilter_impl_sp)
166
166
bool SBTypeFilter::CopyOnWrite_Impl () {
167
167
if (!IsValid ())
168
168
return false ;
169
- if (m_opaque_sp.unique () )
169
+ if (m_opaque_sp.use_count () == 1 )
170
170
return true ;
171
171
172
172
TypeFilterImplSP new_sp (new TypeFilterImpl (GetOptions ()));
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ bool SBTypeFormat::CopyOnWrite_Impl(Type type) {
157
157
if (!IsValid ())
158
158
return false ;
159
159
160
- if (m_opaque_sp.unique () &&
160
+ if (m_opaque_sp.use_count () == 1 &&
161
161
((type == Type::eTypeKeepSame) ||
162
162
(type == Type::eTypeFormat &&
163
163
m_opaque_sp->GetType () == TypeFormatImpl::Type::eTypeFormat) ||
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ bool SBTypeSummary::CopyOnWrite_Impl() {
381
381
if (!IsValid ())
382
382
return false ;
383
383
384
- if (m_opaque_sp.unique () )
384
+ if (m_opaque_sp.use_count () == 1 )
385
385
return true ;
386
386
387
387
TypeSummaryImplSP new_sp;
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ SBTypeSynthetic::SBTypeSynthetic(
184
184
bool SBTypeSynthetic::CopyOnWrite_Impl () {
185
185
if (!IsValid ())
186
186
return false ;
187
- if (m_opaque_sp.unique () )
187
+ if (m_opaque_sp.use_count () == 1 )
188
188
return true ;
189
189
190
190
ScriptedSyntheticChildrenSP new_sp (new ScriptedSyntheticChildren (
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ bool ModuleList::RemoveIfOrphaned(const Module *module_ptr) {
346
346
collection::iterator pos, end = m_modules.end ();
347
347
for (pos = m_modules.begin (); pos != end; ++pos) {
348
348
if (pos->get () == module_ptr) {
349
- if (pos->unique () ) {
349
+ if (pos->use_count () == 1 ) {
350
350
pos = RemoveImpl (pos);
351
351
return true ;
352
352
} else
@@ -377,7 +377,7 @@ size_t ModuleList::RemoveOrphans(bool mandatory) {
377
377
made_progress = false ;
378
378
collection::iterator pos = m_modules.begin ();
379
379
while (pos != m_modules.end ()) {
380
- if (pos->unique () ) {
380
+ if (pos->use_count () == 1 ) {
381
381
pos = RemoveImpl (pos);
382
382
++remove_count;
383
383
// We did make progress.
You can’t perform that action at this time.
0 commit comments