Bug 1505029. Teach our static analysis about nsCOMPtr<nsISupports> being a strong ref. r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D23021

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-03-12 21:04:07 +00:00
Родитель b1985ff010
Коммит 358e378b63
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1940,7 +1940,7 @@ class HTMLEditor final : public TextEditor,
/**
* InsertObject() inserts given object at aPointToInsert.
*/
MOZ_CAN_RUN_SCRIPT_BOUNDARY
MOZ_CAN_RUN_SCRIPT
nsresult InsertObject(const nsACString& aType, nsISupports* aObject,
bool aIsSafe, Document* aSourceDoc,
const EditorDOMPoint& aPointToInsert,

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

@ -875,7 +875,7 @@ class MOZ_IS_REFPTR nsCOMPtr final
* intermediary code that doesn't know the exact type.
*/
template <>
class nsCOMPtr<nsISupports> : private nsCOMPtr_base {
class MOZ_IS_REFPTR nsCOMPtr<nsISupports> : private nsCOMPtr_base {
public:
typedef nsISupports element_type;