VirtualBox

Ignore:
Timestamp:
Nov 27, 2023 6:48:07 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Replace remaining APIs from prprf.h with IPRT equivalents, bugref:10545

File:
1 edited

Legend:

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

    r102005 r102345  
    4242#include "nsVariant.h"
    4343#include "nsString.h"
    44 #include "prprf.h"
    4544#include <math.h>
    4645#include "nsCRT.h"
     
    816815        return NS_OK;
    817816
    818     // the rest can be PR_smprintf'd and use common code.
     817    // the rest can use RTStrAPrintf() and use common code.
    819818
    820819#define CASE__SMPRINTF_NUMBER(type_, format_, cast_, member_)                 \
    821820    case nsIDataType :: type_ :                                               \
    822         ptr = PR_smprintf( format_ , (cast_) data.u. member_ );               \
     821        RTStrAPrintf(&ptr, format_ , (cast_) data.u. member_ );               \
    823822        break;
    824823
     
    847846        return NS_ERROR_OUT_OF_MEMORY;
    848847    outString.Assign(ptr);
    849     PR_smprintf_free(ptr);
     848    RTStrFree(ptr);
    850849    return NS_OK;
    851850}
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