зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1788137 - doc(xpcom): Improve the wording r=nrishel DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D157184
This commit is contained in:
Родитель
174839fd6e
Коммит
78d65dfde2
|
@ -14,7 +14,7 @@ the ``nsCOMPtr_base`` base class, which stores the pointer as a
|
|||
(though it is unclear if it still does). Since ``nsCOMPtr`` stores the
|
||||
pointer as ``nsISupports*``, it must be possible to unambiguously cast from
|
||||
``T*`` to ``nsISupports**``. Many concrete classes inherit from more than
|
||||
once XPCOM interface, meaning that they cannot be used with ``nsCOMPtr``,
|
||||
one XPCOM interface, meaning that they cannot be used with ``nsCOMPtr``,
|
||||
which leads to the suggestion to use ``RefPtr`` for these classes.
|
||||
|
||||
``nsCOMPtr<T>`` also requires that the target type ``T`` be a valid target
|
||||
|
|
Загрузка…
Ссылка в новой задаче