Changeset 5487 in vbox
- Timestamp:
- Oct 24, 2007 6:14:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxRegistrationDlg.ui.h
r5481 r5487 97 97 /* Decoding data */ 98 98 QString result; 99 for (ulong i = 0; i < data.length(); i += 2)100 result += QChar (data.mid (i, 2).toUShort (0, 16));99 for (ulong i = 0; i < data.length(); i += 4) 100 result += QChar (data.mid (i, 4).toUShort (0, 16)); 101 101 ulong crcNow = crc32 ((uchar*)result.ascii(), result.length()); 102 102 … … 125 125 { 126 126 QString curPair = QString::number (data.at (i).unicode(), 16); 127 if (curPair.length() == 1)128 curPair.prepend ( "0");127 while (curPair.length() < 4) 128 curPair.prepend ('0'); 129 129 mData += curPair; 130 130 }
Note:
See TracChangeset
for help on using the changeset viewer.