VirtualBox

Changeset 102005 in vbox for trunk


Ignore:
Timestamp:
Nov 8, 2023 7:07:48 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160102
Message:

libs/xpcom: Use RTStrToDoubleEx() instead of PR_strtod() in nsVariant.cpp (prepartion for removal of prdtoa.h), bugref:10545

File:
1 edited

Legend:

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

    r1 r102005  
    4343#include "nsString.h"
    4444#include "prprf.h"
    45 #include "prdtoa.h"
    4645#include <math.h>
    4746#include "nsCRT.h"
    4847
     48#include <iprt/errcore.h>
     49#include <iprt/string.h>
     50
    4951/***************************************************************************/
    5052// Helpers for static convert functions...
     
    5355{
    5456    char* next;
    55     double value = PR_strtod(aString, &next);
    56     if(next == aString)
     57    double value;
     58    int vrc = RTStrToDoubleEx(aString, &next, 0 /*cchMax*/, &value);
     59    if (RT_FAILURE(vrc))
    5760        return NS_ERROR_CANNOT_CONVERT_DATA;
    5861    *retval = value;
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