зеркало из https://github.com/mozilla/pjs.git
scc and I decided that the explicit keyword was not necessary for the constructor.
It never hurts you to make an nsCOMPtr. MJ
This commit is contained in:
Родитель
5f545adf1e
Коммит
c2935a0853
|
@ -417,7 +417,6 @@ class nsCOMPtr
|
|||
public:
|
||||
typedef T element_type;
|
||||
|
||||
explicit
|
||||
nsCOMPtr( nsISupports* aRawPtr = 0 )
|
||||
: mRawPtr(0),
|
||||
mIsAwaitingAddRef(0)
|
||||
|
|
|
@ -417,7 +417,6 @@ class nsCOMPtr
|
|||
public:
|
||||
typedef T element_type;
|
||||
|
||||
explicit
|
||||
nsCOMPtr( nsISupports* aRawPtr = 0 )
|
||||
: mRawPtr(0),
|
||||
mIsAwaitingAddRef(0)
|
||||
|
|
|
@ -417,7 +417,6 @@ class nsCOMPtr
|
|||
public:
|
||||
typedef T element_type;
|
||||
|
||||
explicit
|
||||
nsCOMPtr( nsISupports* aRawPtr = 0 )
|
||||
: mRawPtr(0),
|
||||
mIsAwaitingAddRef(0)
|
||||
|
|
|
@ -76,6 +76,7 @@ typedef PRUint32 nsrefcnt;
|
|||
*/
|
||||
class nsISupports {
|
||||
public:
|
||||
static const nsIID& IID() { static nsIID iid = NS_ISUPPORTS_IID; return iid; }
|
||||
/**
|
||||
* @name Methods
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче