mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
fix: ignore clang extension usage in ObjC (#8164)
* fix: ignore clang extension usage in ObjC * Code review: adopt `kMaxCells` (324) directly.
This commit is contained in:
@@ -184,12 +184,12 @@ typedef struct PieceInfo
|
||||
if (numCells > 0)
|
||||
{
|
||||
self.image = [NSImage imageWithSize:self.bounds.size flipped:NO drawingHandler:^BOOL(NSRect /*dstRect*/) {
|
||||
NSRect cFillRects[numCells];
|
||||
NSRect cFillRects[kMaxCells];
|
||||
for (int i = 0; i < numCells; ++i)
|
||||
{
|
||||
cFillRects[i] = cellBounds[i].rectValue;
|
||||
}
|
||||
NSColor* cFillColors[numCells];
|
||||
NSColor* cFillColors[kMaxCells];
|
||||
for (int i = 0; i < numCells; ++i)
|
||||
{
|
||||
cFillColors[i] = cellColors[i];
|
||||
|
||||
Reference in New Issue
Block a user