зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b1985ff010
Коммит
358e378b63
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче