[zephyrchat-cvs] zchat/zChat ZChatFriendsController.mm,1.16,1.17
Status: Alpha
Brought to you by:
akosut
|
From: <ak...@us...> - 2003-03-31 16:33:51
|
Update of /cvsroot/zephyrchat/zchat/zChat
In directory sc8-pr-cvs1:/tmp/cvs-serv17304
Modified Files:
ZChatFriendsController.mm
Log Message:
Use floating-point constants when doing floating-point math.
Index: ZChatFriendsController.mm
===================================================================
RCS file: /cvsroot/zephyrchat/zchat/zChat/ZChatFriendsController.mm,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- ZChatFriendsController.mm 31 Mar 2003 15:07:46 -0000 1.16
+++ ZChatFriendsController.mm 31 Mar 2003 16:33:09 -0000 1.17
@@ -97,13 +97,13 @@
// Make sure the data is properly sorted
[_data sortUsingSelector:@selector(compareStatus:)];
- float y = 0;
+ float y = 0.0;
NSEnumerator *e = [_data objectEnumerator];
NSView *view;
while ((view = [[e nextObject] view]) != nil) {
- [view setFrame:NSMakeRect(0, y, NSWidth([_friendView frame]), NSHeight([view frame]))];
- y += NSHeight([view frame]) + 1;
+ [view setFrame:NSMakeRect(0.0, y, NSWidth([_friendView frame]), NSHeight([view frame]))];
+ y += NSHeight([view frame]) + 1.0;
[_friendView addSubview:view];
}
|