remove a bunch of obsolete (and now wrong syntax anyway) casts

This commit is contained in:
Bill Currie 2002-11-01 01:31:37 +00:00
parent 9dc9ee537d
commit 868201e509
5 changed files with 14 additions and 15 deletions

View file

@ -21,7 +21,6 @@
- (integer) y;
- (void) setPoint: (Point)aPoint;
@end
#endif //__ruamoko_Point_h

View file

@ -16,7 +16,7 @@ string (inputline_t il) InputLine_GetText = #0;
- (id) initWithBounds: (Rect)aRect promptCharacter: (integer)char
{
id (self) = [super init];
self = [super init];
control.x = aRect.origin.x;
control.y = aRect.origin.y;
control.cursor = NO;

View file

@ -4,7 +4,7 @@
- (id) initWithComponents: (integer)_x : (integer)_y
{
id (self) = [super init];
self = [super init];
x = _x;
y = _y;
return self;
@ -12,7 +12,7 @@
- (id) initWithPoint: (Point) aPoint
{
id (self) = [super init];
self = [super init];
if (!self || !aPoint)
return NIL;

View file

@ -7,28 +7,28 @@
- (id) initWithComponents: (integer)x : (integer)y : (integer)w : (integer)h
{
id (self) = [super init];
id (origin) = [[Size alloc] initWithComponents: x : y];
id (size) = [[Size alloc] initWithComponents: w : h];
self = [super init];
origin = [[Size alloc] initWithComponents: x : y];
size = [[Size alloc] initWithComponents: w : h];
return self;
}
- (id) initWithOrigin: (Point)anOrigin size: (Size)aSize
{
id (self) = [super init];
self = [super init];
if (!self || !anOrigin || !aSize)
return NIL;
id (origin) = [anOrigin copy];
id (size) = [aSize copy];
origin = [anOrigin copy];
size = [aSize copy];
return self;
}
- (id) initWithRect: (Rect)aRect
{
id (self) = [super init];
self = [super init];
if (!self || !aRect)
return NIL;
@ -66,7 +66,7 @@
if (origin)
[origin free];
id (origin) = [aPoint copy];
origin = [aPoint copy];
}
- (void) setSize: (Size)aSize
@ -77,7 +77,7 @@
if (size)
[size free];
id (size) = [aSize copy];
size = [aSize copy];
}
- (void) setRect: (Rect)aRect

View file

@ -4,7 +4,7 @@
- (id) initWithComponents: (integer)w : (integer)h
{
id (self) = [super init];
self = [super init];
width = w;
height = h;
return self;
@ -12,7 +12,7 @@
- (id) initWithSize: (Size)aSize
{
id (self) = [super init];
self = [super init];
if (!self || !aSize)
return NIL;