Changeset 102345 in vbox for trunk/src/libs/xpcom18a4/xpcom/ds/nsVariant.cpp
- Timestamp:
- Nov 27, 2023 6:48:07 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/ds/nsVariant.cpp
r102005 r102345 42 42 #include "nsVariant.h" 43 43 #include "nsString.h" 44 #include "prprf.h"45 44 #include <math.h> 46 45 #include "nsCRT.h" … … 816 815 return NS_OK; 817 816 818 // the rest can be PR_smprintf'dand use common code.817 // the rest can use RTStrAPrintf() and use common code. 819 818 820 819 #define CASE__SMPRINTF_NUMBER(type_, format_, cast_, member_) \ 821 820 case nsIDataType :: type_ : \ 822 ptr = PR_smprintf(format_ , (cast_) data.u. member_ ); \821 RTStrAPrintf(&ptr, format_ , (cast_) data.u. member_ ); \ 823 822 break; 824 823 … … 847 846 return NS_ERROR_OUT_OF_MEMORY; 848 847 outString.Assign(ptr); 849 PR_smprintf_free(ptr);848 RTStrFree(ptr); 850 849 return NS_OK; 851 850 }
Note:
See TracChangeset
for help on using the changeset viewer.