mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 12:59:23 -10:00
Bug 1114880 - Annotate some strong and weak references in XPCOM; r=froydnj
This commit is contained in:
1 parent
84e14014b5
commit
23405e0fc0
12 files changed
+24
-23
No files matched your search
@@ -137,7 +137,7 @@ struct already_AddRefed
|
||||
}
|
||||
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_STRONG_REF mRawPtr;
|
||||
};
|
||||
|
||||
#endif // AlreadyAddRefed_h
|
||||
@@ -141,7 +141,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
T* mRawPtr;
|
||||
T* MOZ_STRONG_REF mRawPtr;
|
||||
};
|
||||
|
||||
namespace StaticPtr_internal {
|
||||
|
||||
@@ -60,11 +60,11 @@ private:
|
||||
}
|
||||
|
||||
private:
|
||||
T* mPtr;
|
||||
T* MOZ_WEAK_REF mPtr;
|
||||
};
|
||||
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_STRONG_REF mRawPtr;
|
||||
|
||||
public:
|
||||
typedef T element_type;
|
||||
@@ -431,7 +431,7 @@ private:
|
||||
}
|
||||
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_STRONG_REF mRawPtr;
|
||||
|
||||
public:
|
||||
typedef T element_type;
|
||||
@@ -778,7 +778,7 @@ public:
|
||||
return status;
|
||||
}
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_WEAK_REF mRawPtr;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
@@ -801,7 +801,7 @@ public:
|
||||
return status;
|
||||
}
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_WEAK_REF mRawPtr;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ private:
|
||||
}
|
||||
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_STRONG_REF mRawPtr;
|
||||
|
||||
public:
|
||||
typedef T element_type;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#define nsXREAppData_h
|
||||
|
||||
#include <stdint.h>
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsIFile;
|
||||
|
||||
@@ -30,7 +31,7 @@ struct nsXREAppData
|
||||
* The directory of the application to be run. May be null if the
|
||||
* xulrunner and the app are installed into the same directory.
|
||||
*/
|
||||
nsIFile* directory;
|
||||
nsIFile* MOZ_WEAK_REF directory;
|
||||
|
||||
/**
|
||||
* The name of the application vendor. This must be ASCII, and is normally
|
||||
@@ -92,7 +93,7 @@ struct nsXREAppData
|
||||
* The location of the XRE. XRE_main may not be able to figure this out
|
||||
* programatically.
|
||||
*/
|
||||
nsIFile* xreDirectory;
|
||||
nsIFile* MOZ_WEAK_REF xreDirectory;
|
||||
|
||||
/**
|
||||
* The minimum/maximum compatible XRE version.
|
||||
|
||||
@@ -167,7 +167,7 @@ public:
|
||||
nsresult NS_FASTCALL operator()(const nsIID& aIID, void**) const;
|
||||
|
||||
private:
|
||||
nsISupports* mRawPtr;
|
||||
nsISupports* MOZ_STRONG_REF mRawPtr;
|
||||
};
|
||||
|
||||
class nsQueryInterfaceWithError
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
nsresult NS_FASTCALL operator()(const nsIID& aIID, void**) const;
|
||||
|
||||
private:
|
||||
nsISupports* mRawPtr;
|
||||
nsISupports* MOZ_STRONG_REF mRawPtr;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
begin_assignment();
|
||||
|
||||
protected:
|
||||
NS_MAY_ALIAS_PTR(nsISupports) mRawPtr;
|
||||
NS_MAY_ALIAS_PTR(nsISupports) MOZ_STRONG_REF mRawPtr;
|
||||
|
||||
void assign_assuming_AddRef(nsISupports* aNewPtr)
|
||||
{
|
||||
@@ -378,7 +378,7 @@ private:
|
||||
}
|
||||
|
||||
private:
|
||||
T* mRawPtr;
|
||||
T* MOZ_STRONG_REF mRawPtr;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
private:
|
||||
const nsCID& mCID;
|
||||
nsISupports* mOuter;
|
||||
nsISupports* MOZ_WEAK_REF mOuter;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
private:
|
||||
const char* mContractID;
|
||||
nsISupports* mOuter;
|
||||
nsISupports* MOZ_WEAK_REF mOuter;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
@@ -78,8 +78,8 @@ public:
|
||||
virtual nsresult NS_FASTCALL operator()(const nsIID&, void**) const;
|
||||
|
||||
private:
|
||||
nsIFactory* mFactory;
|
||||
nsISupports* mOuter;
|
||||
nsIFactory* MOZ_WEAK_REF mFactory;
|
||||
nsISupports* MOZ_WEAK_REF mOuter;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@ public:
|
||||
enum { ALLOW_MEMMOVE = true };
|
||||
|
||||
protected:
|
||||
T* mKey;
|
||||
T* MOZ_WEAK_REF mKey;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
virtual nsresult NS_FASTCALL operator()(const nsIID&, void**) const;
|
||||
|
||||
private:
|
||||
nsISupports* mSource;
|
||||
nsISupports* MOZ_WEAK_REF mSource;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
nsISupports* mDoomed;
|
||||
nsISupports* MOZ_STRONG_REF mDoomed;
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
||||
@@ -45,7 +45,7 @@ private:
|
||||
mReferent = 0;
|
||||
}
|
||||
|
||||
nsSupportsWeakReference* mReferent;
|
||||
nsSupportsWeakReference* MOZ_WEAK_REF mReferent;
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
||||
@@ -31,7 +31,7 @@ private:
|
||||
// Called (only) by an |nsWeakReference| from _its_ dtor.
|
||||
void NoticeProxyDestruction() { mProxy = 0; }
|
||||
|
||||
nsWeakReference* mProxy;
|
||||
nsWeakReference* MOZ_WEAK_REF mProxy;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in new issue
Block a user