diff --git a/pkgs/build-support/make-hardcode-gsettings-patch/hardcode-gsettings.cocci b/pkgs/build-support/make-hardcode-gsettings-patch/hardcode-gsettings.cocci index ceee9a657610..a7374a117262 100644 --- a/pkgs/build-support/make-hardcode-gsettings-patch/hardcode-gsettings.cocci +++ b/pkgs/build-support/make-hardcode-gsettings-patch/hardcode-gsettings.cocci @@ -162,4 +162,4 @@ expression SCHEMA_ID; identifier schema_exists_fn.fn; @@ -fn(SCHEMA_ID) -+true ++TRUE diff --git a/pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-patched-with-exists-fn/main.c b/pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-patched-with-exists-fn/main.c index f99324cd9c64..3ad87f34b42a 100644 --- a/pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-patched-with-exists-fn/main.c +++ b/pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-patched-with-exists-fn/main.c @@ -74,7 +74,7 @@ void schema_id_with_path() { } void exists_fn_guard() { - if (!true) { + if (!TRUE) { return; } @@ -89,7 +89,7 @@ void exists_fn_guard() { } void exists_fn_nested() { - if (true) { + if (TRUE) { g_autoptr(GSettings) settings = NULL; { g_autoptr(GSettingsSchemaSource) schema_source; @@ -102,7 +102,7 @@ void exists_fn_nested() { } void exists_fn_unknown() { - if (true) { + if (TRUE) { g_autoptr(GSettings) settings = NULL; { g_autoptr(GSettingsSchemaSource) schema_source;