Bug 106787 - Fix: Remove nsIAllocator and it's references. r=bsmedberg
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
#include "nsWebBrowser.h"
|
#include "nsWebBrowser.h"
|
||||||
#include "nsDocShellTreeOwner.h"
|
#include "nsDocShellTreeOwner.h"
|
||||||
|
|
||||||
#include "nsIAllocator.h"
|
#include "nsMemory.h"
|
||||||
#include "nsPIDOMWindow.h"
|
#include "nsPIDOMWindow.h"
|
||||||
|
|
||||||
nsCommandHandler::nsCommandHandler() :
|
nsCommandHandler::nsCommandHandler() :
|
||||||
@@ -118,7 +118,7 @@ NS_IMETHODIMP nsCommandHandler::Exec(const char *aCommand, const char *aStatus,
|
|||||||
|
|
||||||
// Return an empty string
|
// Return an empty string
|
||||||
const char szEmpty[] = "";
|
const char szEmpty[] = "";
|
||||||
*aResult = (char *) nsAllocator::Clone(szEmpty, sizeof(szEmpty));
|
*aResult = (char *) nsMemory::Clone(szEmpty, sizeof(szEmpty));
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,7 @@ NS_IMETHODIMP nsCommandHandler::Query(const char *aCommand, const char *aStatus,
|
|||||||
|
|
||||||
// Return an empty string
|
// Return an empty string
|
||||||
const char szEmpty[] = "";
|
const char szEmpty[] = "";
|
||||||
*aResult = (char *) nsAllocator::Clone(szEmpty, sizeof(szEmpty));
|
*aResult = (char *) nsMemory::Clone(szEmpty, sizeof(szEmpty));
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ EXPORTS += [
|
|||||||
'nsDebugImpl.h',
|
'nsDebugImpl.h',
|
||||||
'nsError.h',
|
'nsError.h',
|
||||||
'nsGZFileWriter.h',
|
'nsGZFileWriter.h',
|
||||||
'nsIAllocator.h',
|
|
||||||
'nsIID.h',
|
'nsIID.h',
|
||||||
'nsInterfaceRequestorAgg.h',
|
'nsInterfaceRequestorAgg.h',
|
||||||
'nsISizeOf.h',
|
'nsISizeOf.h',
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#ifndef nsAllocator_h__
|
#ifndef nsAllocator_h__
|
||||||
#define nsAllocator_h__
|
#define nsAllocator_h__
|
||||||
|
|
||||||
#include "nsIAllocator.h"
|
|
||||||
#include "nsAgg.h"
|
#include "nsAgg.h"
|
||||||
#include "nsIFactory.h"
|
#include "nsIFactory.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* XXX This file is obsolete. Use nsIMemory.idl or nsMemory.h instead.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef nsIAllocator_h___
|
|
||||||
#define nsIAllocator_h___
|
|
||||||
|
|
||||||
#include "nsMemory.h"
|
|
||||||
|
|
||||||
#define nsIAllocator nsIMemory
|
|
||||||
#define nsAllocator nsMemory
|
|
||||||
#define GetGlobalAllocator GetGlobalMemoryService
|
|
||||||
|
|
||||||
#define NS_IALLOCATOR_IID NS_GET_IID(nsIMemory)
|
|
||||||
#define NS_ALLOCATOR_CONTRACTID NS_MEMORY_CONTRACTID
|
|
||||||
#define NS_ALLOCATOR_CID NS_MEMORY_CID
|
|
||||||
|
|
||||||
#endif /* nsIAllocator_h___ */
|
|
||||||
Reference in New Issue
Block a user