зеркало из https://github.com/mozilla/pjs.git
Added GetTransaction() method.
This commit is contained in:
Родитель
bb891b2014
Коммит
c3ce098578
|
@ -52,6 +52,17 @@ nsTransactionItem::AddChild(nsTransactionItem *aTransactionItem)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTransactionItem::GetTransaction(nsITransaction **aTransaction)
|
||||
{
|
||||
if (!aTransaction)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*aTransaction = mTransaction;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTransactionItem::Do()
|
||||
{
|
||||
|
|
|
@ -37,6 +37,7 @@ public:
|
|||
virtual ~nsTransactionItem();
|
||||
|
||||
virtual nsresult AddChild(nsTransactionItem *aTransactionItem);
|
||||
virtual nsresult GetTransaction(nsITransaction **aTransaction);
|
||||
|
||||
virtual nsresult Do(void);
|
||||
virtual nsresult Undo(void);
|
||||
|
|
Загрузка…
Ссылка в новой задаче