diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-16 16:34:02 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:35 -0700 |
commit | 35e70f0b4581276955cc9caa5088afea1a9d6ca6 (patch) | |
tree | 3fa5e842b57e2af016cf4cd5658b204690364071 /tests/plugins | |
parent | 39bcd89306a72c04871433e9b4587b075ab4127a (diff) | |
download | libpeas-35e70f0b4581276955cc9caa5088afea1a9d6ca6.tar.gz |
janitorial: use #pragma once
We can rely on modern compilers to support #pragma once instead of doing
the #ifndef style.
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/builtin/builtin-plugin.h | 5 | ||||
-rw-r--r-- | tests/plugins/has-dep/has-dep-plugin.h | 5 | ||||
-rw-r--r-- | tests/plugins/loadable/loadable-plugin.h | 5 | ||||
-rw-r--r-- | tests/plugins/self-dep/self-dep-plugin.h | 5 |
4 files changed, 4 insertions, 16 deletions
diff --git a/tests/plugins/builtin/builtin-plugin.h b/tests/plugins/builtin/builtin-plugin.h index 65a0025..8ca510f 100644 --- a/tests/plugins/builtin/builtin-plugin.h +++ b/tests/plugins/builtin/builtin-plugin.h @@ -21,8 +21,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __TESTING_BUILTIN_PLUGIN_H__ -#define __TESTING_BUILTIN_PLUGIN_H__ +#pragma once #include <libpeas.h> @@ -50,5 +49,3 @@ GType testing_builtin_plugin_get_type (void) G_GNUC_CONST; G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); G_END_DECLS - -#endif /* __TESTING_BUILTIN_PLUGIN_H__ */ diff --git a/tests/plugins/has-dep/has-dep-plugin.h b/tests/plugins/has-dep/has-dep-plugin.h index 67e295c..1322cf9 100644 --- a/tests/plugins/has-dep/has-dep-plugin.h +++ b/tests/plugins/has-dep/has-dep-plugin.h @@ -21,8 +21,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __TESTING_HAS_DEP_PLUGIN_H__ -#define __TESTING_HAS_DEP_PLUGIN_H__ +#pragma once #include <libpeas.h> @@ -50,5 +49,3 @@ GType testing_has_dep_plugin_get_type (void) G_GNUC_CONST; G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); G_END_DECLS - -#endif /* __TESTING_HAS_DEP_PLUGIN_H__ */ diff --git a/tests/plugins/loadable/loadable-plugin.h b/tests/plugins/loadable/loadable-plugin.h index ba7af25..08207b9 100644 --- a/tests/plugins/loadable/loadable-plugin.h +++ b/tests/plugins/loadable/loadable-plugin.h @@ -21,8 +21,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __TESTING_LOADABLE_PLUGIN_H__ -#define __TESTING_LOADABLE_PLUGIN_H__ +#pragma once #include <libpeas.h> @@ -56,5 +55,3 @@ GType testing_loadable_plugin_get_type (void) G_GNUC_CONST; G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); G_END_DECLS - -#endif /* __TESTING_LOADABLE_PLUGIN_H__ */ diff --git a/tests/plugins/self-dep/self-dep-plugin.h b/tests/plugins/self-dep/self-dep-plugin.h index 0d30d3e..2c580a1 100644 --- a/tests/plugins/self-dep/self-dep-plugin.h +++ b/tests/plugins/self-dep/self-dep-plugin.h @@ -21,8 +21,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __TESTING_SELF_DEP_PLUGIN_H__ -#define __TESTING_SELF_DEP_PLUGIN_H__ +#pragma once #include <libpeas.h> @@ -50,5 +49,3 @@ GType testing_self_dep_plugin_get_type (void) G_GNUC_CONST; G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); G_END_DECLS - -#endif /* __TESTING_SELF_DEP_PLUGIN_H__ */ |