[eog/friemann/krifa75-pragma-once: 2/3] Eog*: Replace include guards in remaining headers with pragma once
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/friemann/krifa75-pragma-once: 2/3] Eog*: Replace include guards in remaining headers with pragma once
- Date: Sat, 9 Jul 2022 19:29:25 +0000 (UTC)
commit f4a101a0e86dc693530567d3652b915c22b43b90
Author: Felix Riemann <friemann gnome org>
Date: Sat Jul 9 21:26:43 2022 +0200
Eog*: Replace include guards in remaining headers with pragma once
src/eog-config-keys.h | 5 +----
src/eog-enum-types.h.template | 5 +----
src/eog-enums.h | 4 +---
src/eog-job-scheduler.h | 5 +----
4 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/src/eog-config-keys.h b/src/eog-config-keys.h
index aa977339..252a3292 100644
--- a/src/eog-config-keys.h
+++ b/src/eog-config-keys.h
@@ -23,8 +23,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#ifndef __EOG_CONFIG_KEYS_H__
-#define __EOG_CONFIG_KEYS_H__
+#pragma once
#define EOG_CONF_DOMAIN "org.gnome.eog"
#define EOG_CONF_FULLSCREEN EOG_CONF_DOMAIN".fullscreen"
@@ -66,5 +65,3 @@
#define EOG_CONF_UI_FILECHOOSER_XDG_FALLBACK "filechooser-xdg-fallback"
#define EOG_CONF_PLUGINS_ACTIVE_PLUGINS "active-plugins"
-
-#endif /* __EOG_CONFIG_KEYS_H__ */
diff --git a/src/eog-enum-types.h.template b/src/eog-enum-types.h.template
index c63c78ce..bc3c195a 100644
--- a/src/eog-enum-types.h.template
+++ b/src/eog-enum-types.h.template
@@ -1,6 +1,5 @@
/*** BEGIN file-header ***/
-#ifndef __EOG_ENUM_TYPES_H__
-#define __EOG_ENUM_TYPES_H__
+#pragma once
#include <glib-object.h>
@@ -21,7 +20,5 @@ GType @enum_name@_get_type (void) G_GNUC_CONST;
/*** BEGIN file-tail ***/
G_END_DECLS
-
-#endif /* __EOG_ENUM_TYPES_H__ */
/*** END file-tail ***/
diff --git a/src/eog-enums.h b/src/eog-enums.h
index 6e5001ac..9a72f3d3 100644
--- a/src/eog-enums.h
+++ b/src/eog-enums.h
@@ -19,8 +19,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#ifndef __EOG_ENUMS__
-#define __EOG_ENUMS__
+#pragma once
typedef enum {
EOG_IMAGE_DATA_IMAGE = 1 << 0,
@@ -34,4 +33,3 @@ typedef enum {
EOG_IMAGE_DATA_EXIF | \
EOG_IMAGE_DATA_XMP)
-#endif
diff --git a/src/eog-job-scheduler.h b/src/eog-job-scheduler.h
index b959ec1e..7d0098b8 100644
--- a/src/eog-job-scheduler.h
+++ b/src/eog-job-scheduler.h
@@ -22,8 +22,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#ifndef __EOG_JOB_SCHEDULER_H__
-#define __EOG_JOB_SCHEDULER_H__
+#pragma once
#include "eog-jobs.h"
@@ -45,5 +44,3 @@ void eog_job_scheduler_add_job_with_priority (EogJob *job,
EogJobPriority priority);
G_END_DECLS
-
-#endif /* __EOG_JOB_SCHEDULER_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]