From 66449ae41ead40096fc0d07d9b219e8ab2437a48 Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.eu>
Date: Tue, 9 Jan 2018 18:30:19 +0000
Subject: [PATCH] Use #pragma once

---
 src/rugby-app-window.h          | 6 +-----
 src/rugby-application.h         | 5 +----
 src/rugby-cell-renderer-score.h | 5 +----
 src/rugby-score-store.h         | 6 +-----
 src/rugby-scoring.h             | 5 +----
 5 files changed, 5 insertions(+), 22 deletions(-)

diff --git a/src/rugby-app-window.h b/src/rugby-app-window.h
index 43772e7..70af6de 100644
--- a/src/rugby-app-window.h
+++ b/src/rugby-app-window.h
@@ -16,8 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef RUGBY_APP_WINDOW_H
-#define RUGBY_APP_WINDOW_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -30,6 +29,3 @@ G_DECLARE_FINAL_TYPE (RugbyAppWindow, rugby_app_window, RUGBY, APP_WINDOW, GtkAp
 RugbyAppWindow *rugby_app_window_new (RugbyApplication *app);
 
 G_END_DECLS
-
-#endif /* RUGBY_APPLICATION_WINDOW_H */
-
diff --git a/src/rugby-application.h b/src/rugby-application.h
index fe6c35a..2adb606 100644
--- a/src/rugby-application.h
+++ b/src/rugby-application.h
@@ -16,8 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __RUGBY_APPLICATION_H__
-#define __RUGBY_APPLICATION_H__
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -29,5 +28,3 @@ G_DECLARE_FINAL_TYPE (RugbyApplication, rugby_application, RUGBY, APPLICATION, G
 RugbyApplication * rugby_application_new (void);
 
 G_END_DECLS
-
-#endif /* __RUGBY_APPLICATION_H__ */
diff --git a/src/rugby-cell-renderer-score.h b/src/rugby-cell-renderer-score.h
index badd8a0..0d290b1 100644
--- a/src/rugby-cell-renderer-score.h
+++ b/src/rugby-cell-renderer-score.h
@@ -16,8 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __RUGBY_CELL_RENDERER_SCORE__
-#define __RUGBY_CELL_RENDERER_SCORE__
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -29,5 +28,3 @@ G_DECLARE_FINAL_TYPE (RugbyCellRendererScore, rugby_cell_renderer_score, RUGBY,
 GtkCellRenderer * rugby_cell_renderer_score_new (void);
 
 G_END_DECLS
-
-#endif /* __RUGBY_CELL_RENDERER_SCORE__ */
diff --git a/src/rugby-score-store.h b/src/rugby-score-store.h
index f335e82..38b33da 100644
--- a/src/rugby-score-store.h
+++ b/src/rugby-score-store.h
@@ -16,9 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
-#ifndef __RUGBY_SCORE_STORE_H__
-#define __RUGBY_SCORE_STORE_H__
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -42,5 +40,3 @@ void              rugby_score_store_set_score (RugbyScoreStore *store,
                                                gint             score);
 
 G_END_DECLS
-
-#endif /* __RUGBY_SCORE_STORE_H__ */
diff --git a/src/rugby-scoring.h b/src/rugby-scoring.h
index 185d428..9ad7a0d 100644
--- a/src/rugby-scoring.h
+++ b/src/rugby-scoring.h
@@ -16,8 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __RUGBY_SCORING_H__
-#define __RUGBY_SCORING_H__
+#pragma once
 
 #include <glib.h>
 
@@ -46,5 +45,3 @@ gint        rugby_scoring_get_max_tries     (gint score);
 gint        rugby_scoring_get_max_kicks     (gint score);
 
 G_END_DECLS
-
-#endif /*__RUGBY_SCORING_H__ */
-- 
GitLab