Author: rmottola
Date: Fri Sep 18 18:57:04 2015
New Revision: 38998

URL: http://svn.gna.org/viewcvs/gnustep?rev=38998&view=rev
Log:
Retain returns the object itself

Modified:
    devmodules/dev-libs/mica/Headers/CoreGraphics/CGPath.h
    devmodules/dev-libs/mica/Sources/CGPath.m

Modified: devmodules/dev-libs/mica/Headers/CoreGraphics/CGPath.h
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Headers/CoreGraphics/CGPath.h?rev=38998&r1=38997&r2=38998&view=diff
==============================================================================
--- devmodules/dev-libs/mica/Headers/CoreGraphics/CGPath.h      (original)
+++ devmodules/dev-libs/mica/Headers/CoreGraphics/CGPath.h      Fri Sep 18 
18:57:04 2015
@@ -83,7 +83,7 @@
  CGPathRef path
  );
 
-void CGPathRetain
+CGPathRef CGPathRetain
 (
  CGPathRef path
  );

Modified: devmodules/dev-libs/mica/Sources/CGPath.m
URL: 
http://svn.gna.org/viewcvs/gnustep/devmodules/dev-libs/mica/Sources/CGPath.m?rev=38998&r1=38997&r2=38998&view=diff
==============================================================================
--- devmodules/dev-libs/mica/Sources/CGPath.m   (original)
+++ devmodules/dev-libs/mica/Sources/CGPath.m   Fri Sep 18 18:57:04 2015
@@ -28,6 +28,9 @@
 
 #import <AppKit/NSBezierPath.h>
 
+@interface CGPath : NSBezierPath;
+@end
+
 void CGPathRelease
 (
  CGPathRef path
@@ -40,7 +43,7 @@
     [nsPath release];
 }
 
-void CGPathRetain
+CGPathRef CGPathRetain
 (
  CGPathRef path
  )
@@ -50,4 +53,6 @@
   nsPath = path;
   if (nsPath)
     [nsPath retain];
+
+  return (CGPathRef)nsPath;
 }


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to