From fee6778710c82dfbee04ab23061a96d324facfdb Mon Sep 17 00:00:00 2001 From: "thomasvl@gmail.com" Date: Thu, 5 Mar 2009 21:30:41 +0000 Subject: - Changed gtm_createCGPath to gtm_cgPath in GTMNSBezier+CGPath. The path returned is now autoreleased so you don't need to worry about releasing it. - Made some changes to the GTMNSObject+UnitTesting APIs. Specifically renamed gtm_createUnitTestImage to gtm_unitTestImage. The value it returns is now autoreleased, so no need to release it. Also change gtm_createUnitTestBitmapOfSize:withData: to a C function. - Cleaned up GTM so that it passes the Clang checker without any warnings. --- AppKit/GTMNSBezierPath+CGPathTest.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'AppKit/GTMNSBezierPath+CGPathTest.m') diff --git a/AppKit/GTMNSBezierPath+CGPathTest.m b/AppKit/GTMNSBezierPath+CGPathTest.m index eb86353..3c99a19 100644 --- a/AppKit/GTMNSBezierPath+CGPathTest.m +++ b/AppKit/GTMNSBezierPath+CGPathTest.m @@ -28,7 +28,7 @@ @implementation GTMNSBezierPath_CGPathTest -- (void)testCreateCGPath { +- (void)testCGPath { GTMAssertDrawingEqualToImageNamed(self, NSMakeSize(100, 100), @"GTMNSBezierPath+CGPathTest", @@ -62,7 +62,7 @@ // test close [thePath closePath]; - CGPathRef cgPath = [thePath gtm_createCGPath]; + CGPathRef cgPath = [thePath gtm_CGPath]; STAssertNotNULL(cgPath, @"Nil CGPath"); CGContextRef cgContext = [[NSGraphicsContext currentContext] graphicsPort]; @@ -70,7 +70,6 @@ CGContextAddPath(cgContext, cgPath); CGContextStrokePath(cgContext); - CGPathRelease(cgPath); } @end -- cgit v1.2.3