diff --git a/mozilla/editor/txmgr/src/nsTransactionStack.cpp b/mozilla/editor/txmgr/src/nsTransactionStack.cpp index 1dedf8a36c5..1e2af19798a 100644 --- a/mozilla/editor/txmgr/src/nsTransactionStack.cpp +++ b/mozilla/editor/txmgr/src/nsTransactionStack.cpp @@ -136,6 +136,7 @@ nsTransactionStack::Write(nsIOutputStream *aOutputStream) tx->Write(aOutputStream); tx = (nsTransactionItem *)--di; } + return NS_OK; } diff --git a/mozilla/editor/txmgr/tests/TestTXMgr.cpp b/mozilla/editor/txmgr/tests/TestTXMgr.cpp index 68a5511b941..ecc322a53fc 100644 --- a/mozilla/editor/txmgr/tests/TestTXMgr.cpp +++ b/mozilla/editor/txmgr/tests/TestTXMgr.cpp @@ -16,6 +16,7 @@ * Reserved. */ +#include #include "nsITransactionManager.h" #include "nsTransactionManagerCID.h" #include "nsRepository.h" @@ -169,8 +170,8 @@ public: NS_DECL_ISUPPORTS - nsresult Close(void) {} - nsresult Write(const char *str, PRInt32 offset, PRInt32 len, PRInt32 *wcnt) + NS_IMETHOD Close(void) {return NS_OK;} + NS_IMETHOD Write(const char *str, PRInt32 offset, PRInt32 len, PRInt32 *wcnt) { *wcnt = fwrite(&str[offset], 1, len, stdout); fflush(stdout);