diff options
Diffstat (limited to 'third_party/ocmock/OCMock/OCPartialMockObject.m')
-rw-r--r-- | third_party/ocmock/OCMock/OCPartialMockObject.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/ocmock/OCMock/OCPartialMockObject.m b/third_party/ocmock/OCMock/OCPartialMockObject.m index ebb889f..fb0b8bd 100644 --- a/third_party/ocmock/OCMock/OCPartialMockObject.m +++ b/third_party/ocmock/OCMock/OCPartialMockObject.m @@ -91,7 +91,7 @@ static NSMutableDictionary *mockTable; { Class realClass = [anObject class]; double timestamp = [NSDate timeIntervalSinceReferenceDate]; - const char *className = [[NSString stringWithFormat:@"%@-%p-%f", realClass, anObject, timestamp] cString]; + const char *className = [[NSString stringWithFormat:@"%@-%p-%f", realClass, anObject, timestamp] UTF8String]; Class subclass = objc_allocateClassPair(realClass, className, 0); objc_registerClassPair(subclass); object_setClass(anObject, subclass); |