summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-05-31 22:16:53 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2019-06-08 21:42:41 -0700
commit916677785ed17dc5dde965113820c695c95d936d (patch)
treead37a50dea8364a2abbb873d59e061cd1d158a61 /test
parent193f05093369f5c8dca7b7acf2e3a22c55c70e05 (diff)
downloadgjs-916677785ed17dc5dde965113820c695c95d936d.tar.gz
maint: Remove C-style NULLs from some files
In files where the IWYU tool would recommend including <stddef.h> only for the symbol NULL, we instead remove usage of NULL in favour of C++-style nullptr, or implicit conversion to bool.
Diffstat (limited to 'test')
-rw-r--r--test/gjs-test-rooting.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/gjs-test-rooting.cpp b/test/gjs-test-rooting.cpp
index 0ba02bbb..75bb76da 100644
--- a/test/gjs-test-rooting.cpp
+++ b/test/gjs-test-rooting.cpp
@@ -222,8 +222,9 @@ static void test_maybe_owned_object_destroyed_after_notify(
void
gjs_test_add_tests_for_rooting(void)
{
-#define ADD_ROOTING_TEST(path, f) \
- g_test_add("/rooting/" path, GjsRootingFixture, NULL, setup, f, teardown);
+#define ADD_ROOTING_TEST(path, f) \
+ g_test_add("/rooting/" path, GjsRootingFixture, nullptr, setup, f, \
+ teardown);
ADD_ROOTING_TEST("maybe-owned/rooted-flag-set-when-rooted",
test_maybe_owned_rooted_flag_set_when_rooted);