diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2013-02-13 17:30:09 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2013-02-13 17:30:09 +0000 |
commit | e87795d0d15fd8b725b2e4899275aa713d39e9e3 (patch) | |
tree | 72b445079e5528f0eda4ba0edd9d919dc863251e /Foundation/GTMNSNumber+64Bit.m | |
parent | 0a3fae419f654ceb4c708300f7bd7702cbb12db1 (diff) |
No need for [self class] in a class method.
DELTA=26 (0 added, 0 deleted, 26 changed)
Diffstat (limited to 'Foundation/GTMNSNumber+64Bit.m')
-rw-r--r-- | Foundation/GTMNSNumber+64Bit.m | 14 |
1 files changed, 7 insertions, 7 deletions
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__ } |