]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/utils.cpp
fix compilation after r50329
[wxWidgets.git] / src / mac / carbon / utils.cpp
index 476431c4a140ac87721a25bd3358e569e952be5a..7c8de25d0bb2a8de7cbb621a04878ed9eed7007b 100644 (file)
@@ -1943,11 +1943,11 @@ OSStatus wxMacControl::SetTabEnabled( SInt16 tabNo , bool enable )
 
 CGColorSpaceRef wxMacGetGenericRGBColorSpace()
 {
-    static wxMacCFRefHolder<CGColorSpaceRef> genericRGBColorSpace;
+    static wxCFRef<CGColorSpaceRef> genericRGBColorSpace;
 
     if (genericRGBColorSpace == NULL)
     {
-        genericRGBColorSpace.Set( CGColorSpaceCreateWithName( kCGColorSpaceGenericRGB ) );
+        genericRGBColorSpace.reset( CGColorSpaceCreateWithName( kCGColorSpaceGenericRGB ) );
     }
 
     return genericRGBColorSpace;