Skip to content

Commit 7938de9

Browse files
committed
Remove comment and error from 1999
1 parent dab9598 commit 7938de9

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

CoreFoundation/Base.subproj/CFUUID.c

+3-18
Original file line numberDiff line numberDiff line change
@@ -173,25 +173,10 @@ CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc) {
173173
return (retval == 0) ? __CFUUIDCreateWithBytesPrimitive(alloc, bytes, false) : NULL;
174174
}
175175

176-
CFUUIDRef CFUUIDCreateWithBytes(CFAllocatorRef alloc, uint8_t byte0, uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4, uint8_t byte5, uint8_t byte6, uint8_t byte7, uint8_t byte8, uint8_t byte9, uint8_t byte10, uint8_t byte11, uint8_t byte12, uint8_t byte13, uint8_t byte14, uint8_t byte15) {
176+
CFUUIDRef CFUUIDCreateWithBytes(CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1, UInt8 byte2, UInt8 byte3, UInt8 byte4, UInt8 byte5, UInt8 byte6, UInt8 byte7, UInt8 byte8, UInt8 byte9, UInt8 byte10, UInt8 byte11, UInt8 byte12, UInt8 byte13, UInt8 byte14, UInt8 byte15) {
177177
CFUUIDBytes bytes;
178-
// CodeWarrior can't handle the structure assignment of bytes, so we must explode this - REW, 10/8/99
179-
bytes.byte0 = byte0;
180-
bytes.byte1 = byte1;
181-
bytes.byte2 = byte2;
182-
bytes.byte3 = byte3;
183-
bytes.byte4 = byte4;
184-
bytes.byte5 = byte5;
185-
bytes.byte6 = byte6;
186-
bytes.byte7 = byte7;
187-
bytes.byte8 = byte8;
188-
bytes.byte9 = byte9;
189-
bytes.byte10 = byte10;
190-
bytes.byte11 = byte11;
191-
bytes.byte12 = byte12;
192-
bytes.byte13 = byte13;
193-
bytes.byte14 = byte14;
194-
bytes.byte15 = byte15;
178+
179+
bytes = {byte0, byte1, byte2, byte3, byte4, byte5, byte6, byte7, byte8, byte9, byte10, byte11, byte12, byte13, byte14, byte15};
195180

196181
return __CFUUIDCreateWithBytesPrimitive(alloc, bytes, false);
197182
}

0 commit comments

Comments
 (0)