mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 81444: Remove deprecated null_nsCOMPtr(), r=mozbot, sr=scc.
This commit is contained in:
parent
283da9ed9b
commit
dc31b7e710
@ -380,20 +380,6 @@ do_QueryInterface( already_AddRefed<T>&, nsresult* )
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* |null_nsCOMPtr| is deprecated. Please use the value |0| instead.
|
||||
* |#define|s are bad, because they aren't scoped. But I can't replace
|
||||
* this definition with an inline, because only a compile-time |0| gets
|
||||
* magically converted to arbitrary pointer types. This doesn't automatically
|
||||
* happen for just any |const int| with the value |0|.
|
||||
*
|
||||
* Ergo: we really want to eliminate all uses of |null_nsCOMPtr()| in favor of
|
||||
* |0|.
|
||||
*/
|
||||
#define null_nsCOMPtr() (0)
|
||||
|
||||
|
||||
|
||||
class nsCOMPtr_base
|
||||
/*
|
||||
...factors implementation for all template versions of |nsCOMPtr|.
|
||||
|
Loading…
Reference in New Issue
Block a user