зеркало из https://github.com/mozilla/gecko-dev.git
allow txn to get/set string and id
This commit is contained in:
Родитель
db0d669bfe
Коммит
af2bc141b0
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
@ -26,6 +26,8 @@ EditAggregateTxn::EditAggregateTxn()
|
|||
{
|
||||
// base class does this: NS_INIT_REFCNT();
|
||||
mChildren = new nsVoidArray();
|
||||
SetTransactionDescriptionID( kTransactionID );
|
||||
/* log description initialized in parent constructor */
|
||||
}
|
||||
|
||||
EditAggregateTxn::~EditAggregateTxn()
|
||||
|
@ -229,7 +231,8 @@ NS_IMETHODIMP EditAggregateTxn::QueryInterface(REFNSIID aIID, void** aInstancePt
|
|||
if (!aInstancePtr) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aIID.Equals(EditAggregateTxn::GetCID())) {
|
||||
*aInstancePtr = (nsISupports*)(EditAggregateTxn*)(this);
|
||||
*aInstancePtr = NS_STATIC_CAST(EditAggregateTxn*, this);
|
||||
// *aInstancePtr = (nsISupports*)(EditAggregateTxn*)(this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
@ -81,6 +81,8 @@ public:
|
|||
/** get the name assigned to this txn */
|
||||
NS_IMETHOD GetName(nsIAtom **aName);
|
||||
|
||||
enum { kTransactionID = 11210 };
|
||||
|
||||
protected:
|
||||
|
||||
//XXX: if this was an nsISupportsArray, it would handle refcounting for us
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
@ -26,6 +26,8 @@ EditAggregateTxn::EditAggregateTxn()
|
|||
{
|
||||
// base class does this: NS_INIT_REFCNT();
|
||||
mChildren = new nsVoidArray();
|
||||
SetTransactionDescriptionID( kTransactionID );
|
||||
/* log description initialized in parent constructor */
|
||||
}
|
||||
|
||||
EditAggregateTxn::~EditAggregateTxn()
|
||||
|
@ -229,7 +231,8 @@ NS_IMETHODIMP EditAggregateTxn::QueryInterface(REFNSIID aIID, void** aInstancePt
|
|||
if (!aInstancePtr) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aIID.Equals(EditAggregateTxn::GetCID())) {
|
||||
*aInstancePtr = (nsISupports*)(EditAggregateTxn*)(this);
|
||||
*aInstancePtr = NS_STATIC_CAST(EditAggregateTxn*, this);
|
||||
// *aInstancePtr = (nsISupports*)(EditAggregateTxn*)(this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
@ -81,6 +81,8 @@ public:
|
|||
/** get the name assigned to this txn */
|
||||
NS_IMETHOD GetName(nsIAtom **aName);
|
||||
|
||||
enum { kTransactionID = 11210 };
|
||||
|
||||
protected:
|
||||
|
||||
//XXX: if this was an nsISupportsArray, it would handle refcounting for us
|
||||
|
|
Загрузка…
Ссылка в новой задаче