Bug 1292224 - Remove duplicate mRefCnt member from nsNavHistoryFolderResultNode, r=adw

This commit is contained in:
Michael Layzell 2016-08-04 13:00:19 -04:00
Родитель 197188c032
Коммит 744feab91b
3 изменённых файлов: 15 добавлений и 6 удалений

Просмотреть файл

@ -26,20 +26,20 @@ NS_IMPL_ISUPPORTS(
)
NS_IMETHODIMP
AsyncStatementCallback::HandleResult(mozIStorageResultSet *aResultSet)
WeakAsyncStatementCallback::HandleResult(mozIStorageResultSet *aResultSet)
{
MOZ_ASSERT(false, "Was not expecting a resultset, but got it.");
return NS_OK;
}
NS_IMETHODIMP
AsyncStatementCallback::HandleCompletion(uint16_t aReason)
WeakAsyncStatementCallback::HandleCompletion(uint16_t aReason)
{
return NS_OK;
}
NS_IMETHODIMP
AsyncStatementCallback::HandleError(mozIStorageError *aError)
WeakAsyncStatementCallback::HandleError(mozIStorageError *aError)
{
#ifdef DEBUG
int32_t result;

Просмотреть файл

@ -23,11 +23,20 @@ namespace places {
////////////////////////////////////////////////////////////////////////////////
//// Asynchronous Statement Callback Helper
class AsyncStatementCallback : public mozIStorageStatementCallback
class WeakAsyncStatementCallback : public mozIStorageStatementCallback
{
public:
NS_DECL_MOZISTORAGESTATEMENTCALLBACK
WeakAsyncStatementCallback() {}
protected:
virtual ~WeakAsyncStatementCallback() {}
};
class AsyncStatementCallback : public WeakAsyncStatementCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_MOZISTORAGESTATEMENTCALLBACK
AsyncStatementCallback() {}
protected:

Просмотреть файл

@ -699,7 +699,7 @@ protected:
class nsNavHistoryFolderResultNode final : public nsNavHistoryContainerResultNode,
public nsINavHistoryQueryResultNode,
public nsINavBookmarkObserver,
public mozilla::places::AsyncStatementCallback
public mozilla::places::WeakAsyncStatementCallback
{
public:
nsNavHistoryFolderResultNode(const nsACString& aTitle,