Bug 1788137 - doc(xpcom): Improve the wording r=nrishel DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D157184
This commit is contained in:
Sylvestre Ledru 2022-09-14 06:16:23 +00:00
Родитель 174839fd6e
Коммит 78d65dfde2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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