|
From: <ho...@us...> - 2025-11-04 10:17:02
|
Revision: 15758
http://sourceforge.net/p/skim-app/code/15758
Author: hofman
Date: 2025-11-04 10:16:59 +0000 (Tue, 04 Nov 2025)
Log Message:
-----------
use while loop instead of for loop, we don't use the index
Modified Paths:
--------------
trunk/SKColorMenuView.m
Modified: trunk/SKColorMenuView.m
===================================================================
--- trunk/SKColorMenuView.m 2025-11-04 10:01:47 UTC (rev 15757)
+++ trunk/SKColorMenuView.m 2025-11-04 10:16:59 UTC (rev 15758)
@@ -60,9 +60,9 @@
annotation = anAnnotation;
hoveredIndex = NSNotFound;
- NSUInteger i, iMax = [colors count];
+ NSInteger i = [colors count];
NSRect rect = NSMakeRect(MARGIN, 0.0, ITEM_SIZE, ITEM_SIZE);
- for (i = 0; i < iMax; i++) {
+ while (i-- > 0) {
NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:rect options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInActiveApp owner:self userInfo:nil];
[self addTrackingArea:area];
rect.origin.x += OFFSET;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|