VirtualBox

Ignore:
Timestamp:
Nov 27, 2023 6:48:07 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160481
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/nsSupportsPrimitives.cpp

    r1 r102345  
    3636 *
    3737 * ***** END LICENSE BLOCK ***** */
     38#include <iprt/string.h>
    3839
    3940#include "nsSupportsPrimitives.h"
    4041#include "nsCRT.h"
    4142#include "nsMemory.h"
    42 #include "prprf.h"
    4343#include "nsIInterfaceInfoManager.h"
    4444#include "nsDependentString.h"
     
    256256    char buf[size];
    257257
    258     PR_snprintf(buf, size, "%u", (PRUint16) mData);
     258    RTStrPrintf2(buf, size, "%u", (PRUint16) mData);
    259259
    260260    char* result = (char*) nsMemory::Clone(buf,
     
    301301    char buf[size];
    302302
    303     PR_snprintf(buf, size, "%u", (int) mData);
     303    RTStrPrintf2(buf, size, "%u", (int) mData);
    304304
    305305    char* result = (char*) nsMemory::Clone(buf,
     
    346346    char buf[size];
    347347
    348     PR_snprintf(buf, size, "%lu", mData);
     348    RTStrPrintf2(buf, size, "%lu", mData);
    349349
    350350    char* result = (char*) nsMemory::Clone(buf,
     
    391391    char buf[size];
    392392
    393     PR_snprintf(buf, size, "%llu", mData);
     393    RTStrPrintf2(buf, size, "%llu", mData);
    394394
    395395    char* result = (char*) nsMemory::Clone(buf,
     
    436436    char buf[size];
    437437
    438     PR_snprintf(buf, size, "%llu", mData);
     438    RTStrPrintf2(buf, size, "%llu", mData);
    439439
    440440    char* result = (char*) nsMemory::Clone(buf,
     
    526526    char buf[size];
    527527
    528     PR_snprintf(buf, size, "%d", mData);
     528    RTStrPrintf2(buf, size, "%d", mData);
    529529
    530530    char* result = (char*) nsMemory::Clone(buf,
     
    571571    char buf[size];
    572572
    573     PR_snprintf(buf, size, "%ld", mData);
     573    RTStrPrintf2(buf, size, "%ld", mData);
    574574
    575575    char* result = (char*) nsMemory::Clone(buf,
     
    616616    char buf[size];
    617617
    618     PR_snprintf(buf, size, "%lld", mData);
     618    RTStrPrintf2(buf, size, "%lld", mData);
    619619
    620620    char* result = (char*) nsMemory::Clone(buf,
     
    661661    char buf[size];
    662662
    663     PR_snprintf(buf, size, "%f", (double) mData);
     663    RTStrPrintf2(buf, size, "%f", (double) mData);
    664664
    665665    char* result = (char*) nsMemory::Clone(buf,
     
    706706    char buf[size];
    707707
    708     PR_snprintf(buf, size, "%f", mData);
     708    RTStrPrintf2(buf, size, "%f", mData);
    709709
    710710    char* result = (char*) nsMemory::Clone(buf,
Note: See TracChangeset for help on using the changeset viewer.

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