Changeset 28914 in vbox
- Timestamp:
- Apr 29, 2010 5:28:51 PM (15 years ago)
- Location:
- trunk/src/libs/xpcom18a4/xpcom/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/base/nsID.cpp
r1 r28914 139 139 } 140 140 141 #ifdef VBOX 142 void nsID::ToProvidedString(char (&dest)[NSID_LENGTH]) const 143 { 144 PR_snprintf(dest, NSID_LENGTH, gIDFormat, 145 m0, (PRUint32) m1, (PRUint32) m2, 146 (PRUint32) m3[0], (PRUint32) m3[1], (PRUint32) m3[2], 147 (PRUint32) m3[3], (PRUint32) m3[4], (PRUint32) m3[5], 148 (PRUint32) m3[6], (PRUint32) m3[7]); 149 } 150 #endif 151 152 -
trunk/src/libs/xpcom18a4/xpcom/base/nsID.h
r1 r28914 43 43 #ifndef nscore_h___ 44 44 #include "nscore.h" 45 #endif 46 47 #ifdef VBOX 48 #define NSID_LENGTH 39 45 49 #endif 46 50 … … 98 102 */ 99 103 NS_COM char* ToString() const; 104 105 #ifdef VBOX 106 /** 107 * nsID string encoder. Builds a string in 108 * {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} format, into a char[NSID_LENGTH] 109 * buffer provided by the caller (for instance, on the stack). 110 */ 111 NS_COM void ToProvidedString(char (&dest)[NSID_LENGTH]) const; 112 #endif 113 100 114 //@} 101 115 }; … … 150 164 #endif 151 165 166
Note:
See TracChangeset
for help on using the changeset viewer.