diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-03-07 17:30:12 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-03-07 17:30:12 +0000 |
commit | 68a9e3a81ecfee95adbcf1f486e259863b9bdaaa (patch) | |
tree | 10ec8c8a19e48d45c9fefb468115b2e9b67fb1d0 | |
parent | 32654998f055c85d9a70b6f415abf79dd81c601e (diff) |
[Author: thomasvl]
Skip sending -class to to self in class methods.
R=dmaclach
DELTA=3 (0 added, 0 deleted, 3 changed)
-rw-r--r-- | AppKit/GTMLinearRGBShading.m | 2 | ||||
-rw-r--r-- | Foundation/GTMCalculatedRange.m | 2 | ||||
-rw-r--r-- | UnitTesting/GTMSenTestCase.m | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/AppKit/GTMLinearRGBShading.m b/AppKit/GTMLinearRGBShading.m index 9434186..4ddabce 100644 --- a/AppKit/GTMLinearRGBShading.m +++ b/AppKit/GTMLinearRGBShading.m @@ -36,7 +36,7 @@ static void cShadeFunction(void *info, const CGFloat *inPos, CGFloat *outVals); + (id)shadingWithColors:(NSColor **)colors fromSpaceNamed:(NSString*)colorSpaceName atPositions:(CGFloat *)positions count:(NSUInteger)count { - GTMLinearRGBShading *theShading = [[[[self class] alloc] initWithColorSpaceName:colorSpaceName] autorelease]; + GTMLinearRGBShading *theShading = [[[self alloc] initWithColorSpaceName:colorSpaceName] autorelease]; for (NSUInteger i = 0; i < count; ++i) { [theShading insertStop:colors[i] atPosition:positions[i]]; } diff --git a/Foundation/GTMCalculatedRange.m b/Foundation/GTMCalculatedRange.m index 5ab491d..3e8aa69 100644 --- a/Foundation/GTMCalculatedRange.m +++ b/Foundation/GTMCalculatedRange.m @@ -36,7 +36,7 @@ GTM_INLINE BOOL FPEqual(CGFloat a, CGFloat b) { @implementation GTMCalculatedRangeStopPrivate + (id)stopWithObject:(id)item position:(CGFloat)inPosition { - return [[[[self class] alloc] initWithObject:item position:inPosition] autorelease]; + return [[[self alloc] initWithObject:item position:inPosition] autorelease]; } - (id)initWithObject:(id)item position:(CGFloat)inPosition { diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m index 330a686..2d55936 100644 --- a/UnitTesting/GTMSenTestCase.m +++ b/UnitTesting/GTMSenTestCase.m @@ -221,7 +221,7 @@ NSString *const SenTestLineNumberKey = @"SenTestLineNumberKey"; @implementation SenTestCase + (id)testCaseWithInvocation:(NSInvocation *)anInvocation { - return [[[[self class] alloc] initWithInvocation:anInvocation] autorelease]; + return [[[self alloc] initWithInvocation:anInvocation] autorelease]; } - (id)initWithInvocation:(NSInvocation *)anInvocation { |