diff options
| author | Philip Chimento <philip.chimento@gmail.com> | 2019-05-31 22:16:53 -0700 |
|---|---|---|
| committer | Philip Chimento <philip.chimento@gmail.com> | 2019-06-08 21:42:41 -0700 |
| commit | 916677785ed17dc5dde965113820c695c95d936d (patch) | |
| tree | ad37a50dea8364a2abbb873d59e061cd1d158a61 /test | |
| parent | 193f05093369f5c8dca7b7acf2e3a22c55c70e05 (diff) | |
| download | gjs-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.cpp | 5 |
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); |
