Commit Graph

27 Commits

Author SHA1 Message Date
Ehsan Akhgari
f8f7ebcba1 Bug 666414 - Prevent AddRef and Release from being called on the pointers wrapped in nsCOMPtr and nsRefPtr; r=bsmedberg 2011-09-16 16:22:44 -04:00
Matheus Kerschbaum
7e40e234c5 Bug 680625 part 0b: Remove more workarounds for past century compilers. r=ted 2011-08-26 00:35:13 +01:00
Neil Rashbrook
8fc9acb593 Bug 538964 Provide doQueryObject API that supports calling QueryInterface on non-interface source and/or destination pointers r=dbaron 2010-04-25 12:06:42 +01:00
Robert O'Callahan
ce8329bdc8 Bug 534425. Part 3: Make nsRefPtr be more lenient about initializing from an already_AddRefed. r=bsmedberg 2010-03-01 20:56:18 +13:00
Neil Rashbrook
1e11e14647 Bug 545730 Add nsRefPtr overload for CallQueryInterface r=dbaron 2010-02-27 16:01:53 +00:00
L. David Baron
30871f519f Add operator->* to nsAutoPtr and nsRefPtr. (Bug 525205) Pending review, but fixes bustage for a bunch of people. 2009-10-29 21:04:32 -07:00
Shawn Wilsher
8a256e2038 Bug 489705 - nsRefPtr should be able to forget a base class to a pure virtual interface it inherits from
r=bsmedberg
sr=dbaron
2009-05-07 15:13:18 -04:00
Benjamin Smedberg
b78eb4713c From bug 449561, bug 445949, and others: let's just ditch nsDerivedSafe since the class of errors it's trying to protect against are uncommon in today's world. r=dbaron 2008-08-11 11:05:58 -04:00
c091a56385 Bug 396369 - "Overload forget method on nsCOMPtr/nsRefPtr to work with out parameters". r=dbaron, sr=bsmedberg, a=damons. 2007-11-11 10:56:45 -08:00
f6ad0dbd07 Bug 392493 - "Add forget() method to nsCOMPtr and nsRefPtr". r=dbaron, a=bzbarsky. 2007-08-28 16:37:22 -07:00
98de634631 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
cvshook@sicking.cc
6c2a6321b4 Don't return nsDerivedSafe when .get() is explicitly used on nsCOMPtr and nsRefPtr. r/sr=dbaron 2006-11-21 21:28:14 +00:00
jag@tty.nl
b06444323b Follow-up to bug 316782. Prevent "copy-construction" of nsAutoPtr through |nsAutoPtr::operator T*() const| chained with constructor |nsAutoPtr(T*)| by adding an extra implicit conversion through a helper class. r=dbaron, r=darin 2006-01-21 11:39:22 +00:00
darin@meer.net
0bfb2d3d9f Backing out last change to resolve SunOS bustage (bug 316782) 2005-11-24 08:46:56 +00:00
darin@meer.net
39d6f68262 prevent "nsTArray< nsAutoPtr<T> >", which could easily lead to problems. bug 316782 r+sr=jag 2005-11-24 00:10:59 +00:00
gerv@gerv.net
c0cd46fc51 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
peterv@netscape.com
83623f8b10 Fix for bug 208398 (Implement swap on nsRefPtr). r=sicking, sr=dbaron. 2003-06-10 11:39:54 +00:00
dbaron@dbaron.org
e4d78b0952 Remove unneeded duplication from nsCOMPtr.h. b=208449 r=sicking sr=jag 2003-06-05 23:43:08 +00:00
jkeiser@netscape.com
382ebf6165 Make nsAutoPtr declarable with forward-declared classes (bug 107291), r=bugmail@sicking.cc, sr=dbaron@dbaron.org 2003-06-05 17:55:33 +00:00
dbaron@dbaron.org
9a80c8e534 Fix bustage on Sun Workshop compiler (nebiros tinderbox). r=darin 2003-05-16 00:52:17 +00:00
dbaron@dbaron.org
1d7d800ca5 Attempt to fix otaku (gcc 2.95.2) bustage. r=bbaetz sr=bryner 2003-02-23 00:28:06 +00:00
bryner@netscape.com
218c1400fa fix OS/2 bustage - don't have nsAutoArrayPtr's |operator= ( nsAutoArrayPtr<T>& )| take a const argument, because it needs to call .forget() on the new pointer to transfer ownership, and forget isn't const. r=bbaetz. 2003-02-22 06:33:00 +00:00
dbaron@dbaron.org
49f57606fb Replace my work in progress on nsAutoPtr with a new version based on nsCOMPtr. Not part of build. b=104346 2003-01-18 16:20:26 +00:00
dbaron@fas.harvard.edu
8a88f30fc6 Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only. 2003-01-01 23:53:20 +00:00
dbaron@fas.harvard.edu
03d4481caf Make it almost compile on MSVC++. Not part of the build. 2001-10-26 08:30:41 +00:00
dbaron@fas.harvard.edu
c044f2ada3 Add |release| and corresponding |operator=| and add equality operators that gcc3 doesn't need but MSVC does. Not part of the build. 2001-10-26 07:15:55 +00:00
dbaron@fas.harvard.edu
ed11e08b3d Adding work in progress for new auto pointers in order to test easily on many compilers. b=104346 2001-10-25 04:09:38 +00:00