scc%netscape.com
3b2708bb1d
fixed for VMS
...
git-svn-id: svn://10.0.0.236/trunk@33573 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:36:53 +00:00
scc%netscape.com
fb55bb044f
replaced tabs with spaces as per our standards
...
git-svn-id: svn://10.0.0.236/trunk@33390 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:59:28 +00:00
scc%netscape.com
7c2cb084f3
added comparisons that will allow |nsnull != myPtr| et al
...
git-svn-id: svn://10.0.0.236/trunk@33385 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:29:55 +00:00
scc%netscape.com
75ac724111
Fixup CallQueryInterface
...
git-svn-id: svn://10.0.0.236/trunk@31239 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:50:08 +00:00
scc%netscape.com
78eb0e9f7f
temporarily commented out CallQueryInterface for UNIX, added NS_EXPORT for Windows
...
git-svn-id: svn://10.0.0.236/trunk@30978 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 21:43:29 +00:00
scc%netscape.com
9135e5202b
conditionally factored destructor
...
git-svn-id: svn://10.0.0.236/trunk@30950 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 20:48:43 +00:00
scc%netscape.com
2532453e8b
sense of HAVE_CPP_BOOL was backwards, fixed it (thanks, Jim Dunn)
...
git-svn-id: svn://10.0.0.236/trunk@30442 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 23:36:38 +00:00
scc%netscape.com
b85e1a74ed
-----BEGIN PGP SIGNED MESSAGE-----
...
Hash: SHA1
Wow! Re-enabled initialization/assignment from raw COM interface pointers, only this time it means the same as |dont_QueryInterface|. Which is what people want and expect. Re-enabled comparisons between |nsCOMPtr|s and raw COM interface pointers; and it means what people expect: are these two 4-byte values equal/not-equal. Added a function for comparing two pointers (either can be raw or nsCOMPtr) called |SameCOMIdentity|, which provides the other kind of comparison.
No current functionality has changed. Everything you're doing now is still legal and valid. These changes only bring some additional options.
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.0.2
Comment: get my key at <http://www.meer.net/ScottCollins/#key >
iQA/AwUBNzAeufGmojMuVn+fEQInWgCfUVK/7xfd/pdhAmyIe4HhynKsuucAn20t
MRtmNY4e2MAdwClvhR65a5Yv
=elb3
-----END PGP SIGNATURE-----
git-svn-id: svn://10.0.0.236/trunk@30401 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 10:37:05 +00:00
scc%netscape.com
c3c1b1ce2b
change |CallQueryInterface| to handle situations where |nsISupports| is ambiguous.
...
git-svn-id: svn://10.0.0.236/trunk@30105 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 12:40:52 +00:00
scc%netscape.com
c2578a9d5f
added |null_nsCOMPtr()|, |CallQueryInterface()|, fixed comments; added |const| in several appropriate places
...
git-svn-id: svn://10.0.0.236/trunk@30099 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 09:37:35 +00:00
scc%netscape.com
ba245bf505
inlining the work of |StartAssigment| reduces |nsCOMPtr| overhead on windows.
...
git-svn-id: svn://10.0.0.236/trunk@24870 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 20:35:49 +00:00
scc%netscape.com
817f56596f
rename |IID()| --> |GetIID()|
...
git-svn-id: svn://10.0.0.236/trunk@22744 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 19:48:57 +00:00
scc%netscape.com
e70b8e958a
backed out depency on nscore.h
...
git-svn-id: svn://10.0.0.236/trunk@22631 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 23:52:38 +00:00
scc%netscape.com
ce584e3c02
now rely on "nscore.h" for NS_REINTERPRET_CAST instead of defining my own. now relying on autoconf system for all unixes. Some tests may need to be fixed.
...
git-svn-id: svn://10.0.0.236/trunk@22620 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 23:08:54 +00:00
mcafee%netscape.com
4780230a1d
Adding comparisons to autoconf results.
...
git-svn-id: svn://10.0.0.236/trunk@22431 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-01 10:13:18 +00:00
ramiro%netscape.com
026fef7a70
AIX portability fixes. (Waqar Malik <waqar@netscape.com>)
...
git-svn-id: svn://10.0.0.236/trunk@22426 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-01 06:29:14 +00:00
scc%netscape.com
6cb22ba536
for VC++5.0, no member using declarations (to prevent internal compiler error); to make this compile fixed type of AddRef and Release in nsDerivedSafe
...
git-svn-id: svn://10.0.0.236/trunk@22250 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 23:43:40 +00:00
scc%netscape.com
99bd38652f
deprecated |dont_AddRef|, added a new form of |getter_AddRefs| to take its place. Removed all nothing of bool from the headers (should help gcc)
...
git-svn-id: svn://10.0.0.236/trunk@22201 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 19:50:46 +00:00
alecf%netscape.com
5840b03d44
fix AIX bustage
...
git-svn-id: svn://10.0.0.236/trunk@22177 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 18:58:08 +00:00
alecf%netscape.com
4b3e627852
fix HPUX bustage - HP's compiler can't do "using" or static casts
...
git-svn-id: svn://10.0.0.236/trunk@21923 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 17:47:54 +00:00
mcafee%netscape.com
fab9b8fd0d
Adding support for Solaris native compiler. a=scc
...
git-svn-id: svn://10.0.0.236/trunk@21208 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 22:34:15 +00:00
scc%netscape.com
4e937fc0aa
updated to new interface for nsCOMPtr
...
git-svn-id: svn://10.0.0.236/trunk@20847 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:58:25 +00:00
scc%netscape.com
218ef805b6
Added |nsresult nsCOMPtr::assignment_error() const;| which returns the error, if any, from the most recent operation (constructor or assignment operator) that implicitly calls |QueryInterface|. This did not increase the size of an |nsCOMPtr|.
...
git-svn-id: svn://10.0.0.236/trunk@20328 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:34:07 +00:00
scc%netscape.com
f2a42cc021
Made the constructor explicit again (see comment) to stop people from breaking the Linux builds.
...
git-svn-id: svn://10.0.0.236/trunk@18235 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 01:17:48 +00:00
scc%netscape.com
7112370451
OK. We were wrong about the SOLARIS case. Sorry.
...
git-svn-id: svn://10.0.0.236/trunk@17964 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-18 20:32:41 +00:00
scc%netscape.com
a47b5a1409
Added patch for bsdi from netscape.public.mozilla.patches; removed test for !SOLARIS as agreed with macafee.
...
git-svn-id: svn://10.0.0.236/trunk@17958 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-18 18:32:33 +00:00
scc%netscape.com
941d7a5f92
Now test pointer result _and_ error code on return from QueryInterface, as some implementations return garbage.
...
git-svn-id: svn://10.0.0.236/trunk@17908 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-16 02:37:22 +00:00
mjudge%netscape.com
546bdab866
scc and I decided that the explicit keyword was not necessary for the constructor.
...
It never hurts you to make an nsCOMPtr. MJ
git-svn-id: svn://10.0.0.236/trunk@17857 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 18:57:31 +00:00
scc%netscape.com
ead2550eb0
defined NSCAP_NEED_UNUSED_VIRTUAL_IMPLEMENTATIONS for GNU 2.7 under linux. Fixed URL leading to the user manual. Noted that ramiro is working on getting all these special #defines handled by the configuration system instead.
...
git-svn-id: svn://10.0.0.236/trunk@17182 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-05 21:07:57 +00:00
scc%netscape.com
e9d8de921a
added |dont_QueryInterface| facility, re-added the NS_ADDREF macros, though conditionally
...
git-svn-id: svn://10.0.0.236/trunk@16781 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-21 23:26:39 +00:00
scc%netscape.com
a5e6d7e9b5
NSCAP_FEATURE_DONT_ADDREF is no longer optional, and the symbol has gone away. This facility turns out to be needed. Also catch the case when operator= is called on a dereferenced smart pointer. Fixed some documentation.
...
git-svn-id: svn://10.0.0.236/trunk@16638 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 03:45:44 +00:00
scc%netscape.com
bc7994a1ef
enabled the dont_AddRef feature, for when functions return an already AddRefed result, e.g. |mSmartPtr = dont_AddRef(GetThing());|
...
git-svn-id: svn://10.0.0.236/trunk@16597 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 19:32:00 +00:00
scc%netscape.com
113beb03ea
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@16591 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 19:12:45 +00:00