From e87795d0d15fd8b725b2e4899275aa713d39e9e3 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 13 Feb 2013 17:30:09 +0000 Subject: No need for [self class] in a class method. DELTA=26 (0 added, 0 deleted, 26 changed) --- Foundation/GTMNSNumber+64Bit.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Foundation/GTMNSNumber+64Bit.m') diff --git a/Foundation/GTMNSNumber+64Bit.m b/Foundation/GTMNSNumber+64Bit.m index 49d5c4d..c3b1762 100644 --- a/Foundation/GTMNSNumber+64Bit.m +++ b/Foundation/GTMNSNumber+64Bit.m @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -20,15 +20,15 @@ @implementation NSNumber (GTM64BitAdditions) + (NSNumber *)gtm_numberWithCGFloat:(CGFloat)value { - return [[[[self class] alloc] gtm_initWithCGFloat:value] autorelease]; + return [[[self alloc] gtm_initWithCGFloat:value] autorelease]; } + (NSNumber *)gtm_numberWithInteger:(NSInteger)value { - return [[[[self class] alloc] gtm_initWithInteger:value] autorelease]; + return [[[self alloc] gtm_initWithInteger:value] autorelease]; } + (NSNumber *)gtm_numberWithUnsignedInteger:(NSUInteger)value { - return [[[[self class] alloc] gtm_initWithUnsignedInteger:value] autorelease]; + return [[[self alloc] gtm_initWithUnsignedInteger:value] autorelease]; } #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 @@ -65,7 +65,7 @@ - (id)gtm_initWithCGFloat:(CGFloat)value { #if defined(__LP64__) && __LP64__ return [self initWithDouble:value]; -#else +#else return [self initWithFloat:value]; #endif // defined(__LP64__) && __LP64__ } @@ -73,7 +73,7 @@ - (CGFloat)gtm_cgFloatValue { #if defined(__LP64__) && __LP64__ return [self doubleValue]; -#else +#else return [self floatValue]; #endif // defined(__LP64__) && __LP64__ } -- cgit v1.2.3