Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/intrusive_ptr.h

Issue 29713591: Noissue - add `addRef = true` argument to `intrusive_ptr::reset` (Closed) Base URL: github.com:adblockplus/adblockpluscore
Patch Set: Created March 2, 2018, 3:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/intrusive_ptr.h
diff --git a/compiled/intrusive_ptr.h b/compiled/intrusive_ptr.h
index 211e6fe42a8a04ca9c42dc5a5e098a541703723f..a198fc3e1d1adcd1c442bf0e8f4b769b0d8d1e5b 100644
--- a/compiled/intrusive_ptr.h
+++ b/compiled/intrusive_ptr.h
@@ -125,9 +125,9 @@ public:
intrusive_ptr().swap(*this);
}
- void reset(T* other)
+ void reset(T* other, bool addRef = true)
{
- intrusive_ptr(other).swap(*this);
+ intrusive_ptr(other, addRef).swap(*this);
}
const T* get() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld