Fixes compile warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@35371 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2012-08-08 22:25:33 +00:00
parent 5f7ea64199
commit 3aeec4ae2e

View file

@ -51,7 +51,7 @@
/* Designated initializer. */
- initWithDrawContext: (GSContext *)drawContext
{
{
self = [super init];
if (!self)
return nil;
@ -101,6 +101,14 @@
return self;
}
- (NSString*) description
{
NSMutableString *description = [[super description] mutableCopy];
[description appendFormat: @" drawcontext: %@",drawcontext];
[description appendFormat: @" ctm: %@",ctm];
return [description copy];
}
- copyWithZone: (NSZone *)zone
{
GSGState *new = (GSGState *)NSCopyObject(self, 0, zone);
@ -299,7 +307,7 @@
{
device_color_t col;
ASSIGN(fillColorS, spaceref);
ASSIGN(fillColorS, (NSColorSpace*)spaceref);
gsMakeColor(&col, rgb_colorspace, 0, 0, 0, 0);
// Keep the old alpha value
col.field[AINDEX] = fillColor.field[AINDEX];
@ -310,7 +318,7 @@
{
device_color_t col;
ASSIGN(strokeColorS, spaceref);
ASSIGN(strokeColorS, (NSColorSpace*)spaceref);
gsMakeColor(&col, rgb_colorspace, 0, 0, 0, 0);
// Keep the old alpha value
col.field[AINDEX] = fillColor.field[AINDEX];