зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1292224 - Remove duplicate mRefCnt member from nsNavHistoryFolderResultNode, r=adw
This commit is contained in:
Родитель
197188c032
Коммит
744feab91b
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче