Bug 106787 - Fix: Remove nsIAllocator and it's references. r=bsmedberg

This commit is contained in:
Márk Bartos
2014-04-14 17:20:45 +02:00
parent f6ec03e002
commit 1ff6c09fe4
4 changed files with 3 additions and 28 deletions

View File

@@ -8,7 +8,7 @@
#include "nsWebBrowser.h"
#include "nsDocShellTreeOwner.h"
#include "nsIAllocator.h"
#include "nsMemory.h"
#include "nsPIDOMWindow.h"
nsCommandHandler::nsCommandHandler() :
@@ -118,7 +118,7 @@ NS_IMETHODIMP nsCommandHandler::Exec(const char *aCommand, const char *aStatus,
// Return an empty string
const char szEmpty[] = "";
*aResult = (char *) nsAllocator::Clone(szEmpty, sizeof(szEmpty));
*aResult = (char *) nsMemory::Clone(szEmpty, sizeof(szEmpty));
return NS_OK;
}
@@ -141,7 +141,7 @@ NS_IMETHODIMP nsCommandHandler::Query(const char *aCommand, const char *aStatus,
// Return an empty string
const char szEmpty[] = "";
*aResult = (char *) nsAllocator::Clone(szEmpty, sizeof(szEmpty));
*aResult = (char *) nsMemory::Clone(szEmpty, sizeof(szEmpty));
return NS_OK;
}