Browse Source

Cocoa: Cleanup

Readability fix, does not affect generated code.

(cherry picked from commit bd452016be99e10d7fa8282cd75b1c53e0d5a8cc)
Camilla Löwy 5 năm trước cách đây
mục cha
commit
e662492169
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/nsgl_context.m

+ 2 - 2
src/nsgl_context.m

@@ -339,7 +339,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
         return GLFW_FALSE;
     }
 
-    NSOpenGLContext* share = NULL;
+    NSOpenGLContext* share = nil;
 
     if (ctxconfig->share)
         share = ctxconfig->share->context.nsgl.object;
@@ -412,7 +412,7 @@ GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle)
     if (window->context.client == GLFW_NO_API)
     {
         _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
-        return NULL;
+        return nil;
     }
 
     return window->context.nsgl.object;