[gnome-control-center] search: Replace ifdefs with #pragma once



commit 17945caef6f5d28c4f16609ba046031e2e1bdc64
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue May 29 11:50:56 2018 +1200

    search: Replace ifdefs with #pragma once

 panels/search/cc-search-locations-dialog.h | 5 +----
 panels/search/cc-search-panel.h            | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/panels/search/cc-search-locations-dialog.h b/panels/search/cc-search-locations-dialog.h
index 26424d1d5..912f2f082 100644
--- a/panels/search/cc-search-locations-dialog.h
+++ b/panels/search/cc-search-locations-dialog.h
@@ -18,8 +18,7 @@
  * Author: Cosimo Cecchi <cosimoc gnome org>
  */
 
-#ifndef _CC_SEARCH_LOCATIONS_DIALOG_H
-#define _CC_SEARCH_LOCATIONS_DIALOG_H
+#pragma once
 
 #include "cc-search-panel.h"
 
@@ -29,5 +28,3 @@ G_DECLARE_FINAL_TYPE (CcSearchLocationsDialog, cc_search_locations_dialog, CC, S
 CcSearchLocationsDialog *cc_search_locations_dialog_new (CcSearchPanel *panel);
 
 gboolean cc_search_locations_dialog_is_available        (void);
-
-#endif /* _CC_SEARCH_LOCATIONS_DIALOG_H */
diff --git a/panels/search/cc-search-panel.h b/panels/search/cc-search-panel.h
index 39de4695c..34d75a509 100644
--- a/panels/search/cc-search-panel.h
+++ b/panels/search/cc-search-panel.h
@@ -18,8 +18,7 @@
  * Author: Cosimo Cecchi <cosimoc gnome org>
  */
 
-#ifndef _CC_SEARCH_PANEL_H
-#define _CC_SEARCH_PANEL_H
+#pragma once
 
 #include <shell/cc-panel.h>
 
@@ -29,5 +28,3 @@ G_BEGIN_DECLS
 G_DECLARE_FINAL_TYPE (CcSearchPanel, cc_search_panel, CC, SEARCH_PANEL, CcPanel)
 
 G_END_DECLS
-
-#endif /* _CC_SEARCH_PANEL_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]