- Timestamp:
- Nov 8, 2023 7:07:48 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160102
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/ds/nsVariant.cpp
r1 r102005 43 43 #include "nsString.h" 44 44 #include "prprf.h" 45 #include "prdtoa.h"46 45 #include <math.h> 47 46 #include "nsCRT.h" 48 47 48 #include <iprt/errcore.h> 49 #include <iprt/string.h> 50 49 51 /***************************************************************************/ 50 52 // Helpers for static convert functions... … … 53 55 { 54 56 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)) 57 60 return NS_ERROR_CANNOT_CONVERT_DATA; 58 61 *retval = value;
Note:
See TracChangeset
for help on using the changeset viewer.