[gjs: 3/12] test: Avoid including stddef.h for NULL




commit b7e3cb5e532b45433931e7b29bf140aa569f95cb
Author: Philip Chimento <philip chimento gmail com>
Date:   Mon Nov 23 22:21:34 2020 -0800

    test: Avoid including stddef.h for NULL
    
    Replace with nullptr which is a keyword.

 test/gjs-test-no-introspection-object.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/test/gjs-test-no-introspection-object.cpp b/test/gjs-test-no-introspection-object.cpp
index 211812c1..3ab60d34 100644
--- a/test/gjs-test-no-introspection-object.cpp
+++ b/test/gjs-test-no-introspection-object.cpp
@@ -13,7 +13,7 @@ struct _GjsTestNoIntrospectionObject {
 G_DEFINE_TYPE(GjsTestNoIntrospectionObject, gjstest_no_introspection_object,
               G_TYPE_OBJECT)
 
-static GjsTestNoIntrospectionObject* last_object = NULL;
+static GjsTestNoIntrospectionObject* last_object = nullptr;
 
 static void gjstest_no_introspection_object_init(
     GjsTestNoIntrospectionObject* self) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]