Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -719,7 +719,7 @@ nsString* nsString::ToNewString() const {
|
||||
* @return ptr to new ascii string
|
||||
*/
|
||||
char* nsString::ToNewCString() const {
|
||||
char* result = NS_STATIC_CAST(char*, nsAllocator::Alloc(mLength + 1));
|
||||
char* result = NS_STATIC_CAST(char*, nsMemory::Alloc(mLength + 1));
|
||||
if (result) {
|
||||
CBufDescriptor desc(result, PR_TRUE, mLength + 1, 0);
|
||||
nsCAutoString temp(desc);
|
||||
|
||||
Reference in New Issue
Block a user