VirtualBox

Changeset 102326 in vbox for trunk


Ignore:
Timestamp:
Nov 27, 2023 3:19:39 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Remove usage of nsCppSharedAllocator which is onlyused in nsCRT and can be safely replaced with RTMem*, bugref:10545 [fix]

Location:
trunk/src/libs/xpcom18a4/xpcom/ds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsCRT.cpp

    r102325 r102326  
    249249PRUnichar* nsCRT::strndup(const PRUnichar* str, PRUint32 len)
    250250{
    251         PRUnichar* rslt = RTMemAlloc(sizeof(PRUnichar) * (len + 1)); // add one for the null
     251        PRUnichar* rslt = (PRUnichar *)RTMemAlloc(sizeof(PRUnichar) * (len + 1)); // add one for the null
    252252
    253253  if (rslt == NULL) return NULL;
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsCRT.h

    r102325 r102326  
    4444#include <string.h>
    4545#include <ctype.h>
     46#include "nsMemory.h"
    4647#include "plstr.h"
    4748#include "nscore.h"
    4849#include "prtypes.h"
     50
     51#ifdef HAVE_CPP_NUMERIC_LIMITS
     52#include <limits>
     53#else
     54#include <limits.h>
     55#endif
    4956
    5057#ifdef XP_MAC
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette