[bijiben] h-files: Adopt #pragma once



commit 40bb0c71d5c04ba6445cd1e7d5d928b8ccdf635a
Author: Isaque Galdino <igaldino gmail com>
Date:   Wed Dec 27 00:55:22 2017 -0200

    h-files: Adopt #pragma once
    
    In order to modernize code, we have to change all *.h files to use:
    #pragma once
    
    instead of:
    #ifndef _FOO_H
    #define _FOO_H
    ...
    #endif /*_FOO_H*/
    
    It will also make code easier to read. This patch does that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791843

 src/bjb-app-menu.h                                |    5 +----
 src/bjb-application.h                             |    5 +----
 src/bjb-color-button.h                            |    5 +----
 src/bjb-controller.h                              |    6 +-----
 src/bjb-editor-toolbar.h                          |    5 +----
 src/bjb-empty-results-box.h                       |    5 +----
 src/bjb-import-dialog.h                           |    8 +-------
 src/bjb-load-more-button.h                        |    5 +----
 src/bjb-main-toolbar.h                            |    5 +----
 src/bjb-main-view.h                               |    5 +----
 src/bjb-note-view.h                               |    5 +----
 src/bjb-organize-dialog.h                         |    5 +----
 src/bjb-search-toolbar.h                          |    5 +----
 src/bjb-selection-toolbar.h                       |    5 +----
 src/bjb-settings-dialog.h                         |    5 +----
 src/bjb-settings.h                                |    5 +----
 src/bjb-share.h                                   |    6 +-----
 src/bjb-window-base.h                             |    6 +-----
 src/libbiji/biji-date-time.h                      |    7 +------
 src/libbiji/biji-error.h                          |    6 +-----
 src/libbiji/biji-info-set.h                       |    6 +-----
 src/libbiji/biji-item.h                           |    5 +----
 src/libbiji/biji-manager.h                        |    5 +----
 src/libbiji/biji-note-id.h                        |    5 +----
 src/libbiji/biji-note-obj.h                       |    5 +----
 src/libbiji/biji-notebook.h                       |    5 +----
 src/libbiji/biji-string.h                         |    8 +-------
 src/libbiji/biji-timeout.h                        |    5 +----
 src/libbiji/biji-tracker.h                        |    5 +----
 src/libbiji/biji-zeitgeist.h                      |   10 +---------
 src/libbiji/deserializer/biji-lazy-deserializer.h |    6 +-----
 src/libbiji/deserializer/biji-tomboy-reader.h     |    6 +-----
 src/libbiji/editor/biji-editor-selection.h        |    5 +----
 src/libbiji/editor/biji-webkit-editor.h           |    5 +----
 src/libbiji/libbiji.h                             |    4 +---
 src/libbiji/provider/biji-import-provider.h       |    6 +-----
 src/libbiji/provider/biji-local-note.h            |    6 +-----
 src/libbiji/provider/biji-local-provider.h        |    8 +-------
 src/libbiji/provider/biji-memo-note.h             |    6 +-----
 src/libbiji/provider/biji-memo-provider.h         |    7 +------
 src/libbiji/provider/biji-own-cloud-note.h        |    5 +----
 src/libbiji/provider/biji-own-cloud-provider.h    |    6 +-----
 src/libbiji/provider/biji-provider.h              |    5 +----
 src/libbiji/serializer/biji-lazy-serializer.h     |    6 +-----
 44 files changed, 44 insertions(+), 205 deletions(-)
---
diff --git a/src/bjb-app-menu.h b/src/bjb-app-menu.h
index baf3d80..6a8143c 100644
--- a/src/bjb-app-menu.h
+++ b/src/bjb-app-menu.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _APP_MENU_H
-#define _APP_MENU_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -26,5 +25,3 @@ void          bjb_app_menu_set             (GApplication *application) ;
 void          help_activated               (GSimpleAction *action,
                                             GVariant      *parameter,
                                             gpointer       user_data);
-
-#endif /*_APP_MENU_H*/
diff --git a/src/bjb-application.h b/src/bjb-application.h
index 31d17fd..177025b 100644
--- a/src/bjb-application.h
+++ b/src/bjb-application.h
@@ -18,8 +18,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJIBEN_
-#define _BIJIBEN_
+#pragma once
 
 #include <gtk/gtk.h>
 #include <libbiji/libbiji.h>
@@ -46,5 +45,3 @@ void bijiben_new_window_for_note (GApplication *app, BijiNoteObj *note);
 void bijiben_import_notes (BjbApplication *self, gchar *uri);
 
 G_END_DECLS
-
-#endif /* _APPLICATION_H_ */
diff --git a/src/bjb-color-button.h b/src/bjb-color-button.h
index 4ea86ab..d4eced6 100644
--- a/src/bjb-color-button.h
+++ b/src/bjb-color-button.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BJB_COLOR_BUTTON_H_
-#define _BJB_COLOR_BUTTON_H_
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -29,5 +28,3 @@ G_DECLARE_FINAL_TYPE (BjbColorButton, bjb_color_button, BJB, COLOR_BUTTON, GtkCo
 GtkWidget * bjb_color_button_new (void);
 
 G_END_DECLS
-
-#endif /* _BJB_COLOR_BUTTON_H_ */
diff --git a/src/bjb-controller.h b/src/bjb-controller.h
index 0c0373a..fa46aa6 100644
--- a/src/bjb-controller.h
+++ b/src/bjb-controller.h
@@ -17,8 +17,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BJB_CONTROLLER_H_
-#define _BJB_CONTROLLER_H_
+#pragma once
 
 #include <glib-object.h>
 #include <libbiji/libbiji.h>
@@ -68,6 +67,3 @@ gboolean bjb_controller_get_remaining_items (BjbController *self);
 
 
 G_END_DECLS
-
-
-#endif /* _BJB_CONTROLLER_H_ */
diff --git a/src/bjb-editor-toolbar.h b/src/bjb-editor-toolbar.h
index 5bde29c..847143e 100644
--- a/src/bjb-editor-toolbar.h
+++ b/src/bjb-editor-toolbar.h
@@ -17,8 +17,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef BJB_EDITOR_TOOLBAR_H
-#define BJB_EDITOR_TOOLBAR_H
+#pragma once
 
 #include "bjb-note-view.h"
 
@@ -32,5 +31,3 @@ GtkWidget *bjb_editor_toolbar_new (BjbNoteView *bjb_note_view,
                                    BijiNoteObj *biji_note_obj);
 
 G_END_DECLS
-
-#endif /* BJB_EDITOR_TOOLBAR_H */
diff --git a/src/bjb-empty-results-box.h b/src/bjb-empty-results-box.h
index 7741789..6590b07 100644
--- a/src/bjb-empty-results-box.h
+++ b/src/bjb-empty-results-box.h
@@ -24,8 +24,7 @@
  *   + Photos
  */
 
-#ifndef BJB_EMPTY_RESULTS_BOX_H
-#define BJB_EMPTY_RESULTS_BOX_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -48,5 +47,3 @@ void                bjb_empty_results_box_set_type           (BjbEmptyResultsBox
                                                               BjbEmptyResultsBoxType type);
 
 G_END_DECLS
-
-#endif /* BJB_EMPTY_RESULTS_BOX_H */
diff --git a/src/bjb-import-dialog.h b/src/bjb-import-dialog.h
index 7111b23..7289127 100644
--- a/src/bjb-import-dialog.h
+++ b/src/bjb-import-dialog.h
@@ -16,11 +16,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program.  If not, see <http://www.gnu.org/licenses/>.*/
 
-
-
-
-#ifndef BJB_IMPORT_DIALOG_H_
-#define BJB_IMPORT_DIALOG_H_ 1
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -38,5 +34,3 @@ GList *       bjb_import_dialog_get_paths    (BjbImportDialog *dialog);
 
 
 G_END_DECLS
-
-#endif /* BJB_IMPORT_DIALOG_H_ */
diff --git a/src/bjb-load-more-button.h b/src/bjb-load-more-button.h
index 5bfef85..10a7779 100644
--- a/src/bjb-load-more-button.h
+++ b/src/bjb-load-more-button.h
@@ -20,8 +20,7 @@
 
 /* Chained based on Photos, Documents */
 
-#ifndef BJB_LOAD_MORE_BUTTON_H
-#define BJB_LOAD_MORE_BUTTON_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -45,5 +44,3 @@ GtkWidget             *bjb_load_more_button_get_revealer           (BjbLoadMoreB
 void                   bjb_load_more_button_set_block              (BjbLoadMoreButton *button, gboolean 
block);
 
 G_END_DECLS
-
-#endif /* BJB_LOAD_MORE_BUTTON_H */
diff --git a/src/bjb-main-toolbar.h b/src/bjb-main-toolbar.h
index 7620792..e4dd0d7 100644
--- a/src/bjb-main-toolbar.h
+++ b/src/bjb-main-toolbar.h
@@ -16,8 +16,7 @@ bijiben is free software: you can redistribute it and/or modify it
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BJB_MAIN_TOOLBAR_H_
-#define _BJB_MAIN_TOOLBAR_H_
+#pragma once
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -34,5 +33,3 @@ BjbMainToolbar        *bjb_main_toolbar_new                       (BjbMainView *
                                                                    BjbController *controller);
 
 G_END_DECLS
-
-#endif /* _BJB_MAIN_TOOLBAR_H_ */
diff --git a/src/bjb-main-view.h b/src/bjb-main-view.h
index ff4d5be..f481654 100644
--- a/src/bjb-main-view.h
+++ b/src/bjb-main-view.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _MAIN_VIEW_H_
-#define _MAIN_VIEW_H_
+#pragma once
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -69,5 +68,3 @@ void bjb_main_view_disconnect_scrolled_window (BjbMainView *self);
 
 
 G_END_DECLS
-
-#endif /* _MAIN_VIEW_H_ */
diff --git a/src/bjb-note-view.h b/src/bjb-note-view.h
index 9b6c1cd..0d98da0 100644
--- a/src/bjb-note-view.h
+++ b/src/bjb-note-view.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _NOTE_VIEW_H
-#define _NOTE_VIEW_H
+#pragma once
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -39,5 +38,3 @@ GtkWidget          *bjb_note_view_get_base_window    (BjbNoteView *v);
 void                bjb_note_view_grab_focus         (BjbNoteView *view);
 
 G_END_DECLS
-
-#endif /* _NOTE_VIEW_H */
diff --git a/src/bjb-organize-dialog.h b/src/bjb-organize-dialog.h
index fdc1a02..863170b 100644
--- a/src/bjb-organize-dialog.h
+++ b/src/bjb-organize-dialog.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BJB_ORGANIZE_DIALOG_H_
-#define _BJB_ORGANIZE_DIALOG_H_
+#pragma once
 
 #include <libbiji/libbiji.h>
 
@@ -32,5 +31,3 @@ void bjb_organize_dialog_new (GtkWindow *parent,
                               GList     *biji_note_obj);
 
 G_END_DECLS
-
-#endif /* _BJB_ORGANIZE_DIALOG_H_ */
diff --git a/src/bjb-search-toolbar.h b/src/bjb-search-toolbar.h
index 4c1b352..9a7e644 100644
--- a/src/bjb-search-toolbar.h
+++ b/src/bjb-search-toolbar.h
@@ -16,8 +16,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef BJB_SEARCH_TOOLBAR_H
-#define BJB_SEARCH_TOOLBAR_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -40,5 +39,3 @@ void               bjb_search_toolbar_connect               (BjbSearchToolbar *s
 
 
 G_END_DECLS
-
-#endif /* BJB_SEARCH_TOOLBAR_H */
diff --git a/src/bjb-selection-toolbar.h b/src/bjb-selection-toolbar.h
index 25374b1..fec2933 100644
--- a/src/bjb-selection-toolbar.h
+++ b/src/bjb-selection-toolbar.h
@@ -16,8 +16,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef BJB_SELECTION_TOOLBAR_H
-#define BJB_SELECTION_TOOLBAR_H
+#pragma once
 
 #include <libgd/gd.h>
 
@@ -31,5 +30,3 @@ BjbSelectionToolbar * bjb_selection_toolbar_new (GdMainView   *selection,
                                                  BjbMainView  *bjb_main_view);
 
 G_END_DECLS
-
-#endif /* BJB_SELECTION_TOOLBAR_H */
diff --git a/src/bjb-settings-dialog.h b/src/bjb-settings-dialog.h
index 8015f59..f2f0816 100644
--- a/src/bjb-settings-dialog.h
+++ b/src/bjb-settings-dialog.h
@@ -18,8 +18,7 @@
  */
 
 
-#ifndef BJB_SETTINGS_DIALOG_H_
-#define BJB_SETTINGS_DIALOG_H_ 1
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -32,5 +31,3 @@ G_DECLARE_FINAL_TYPE (BjbSettingsDialog, bjb_settings_dialog, BJB, SETTINGS_DIAL
 GtkDialog             *bjb_settings_dialog_new                 (void);
 
 G_END_DECLS
-
-#endif /* BJB_SETTINGS_DIALOG_H_ */
diff --git a/src/bjb-settings.h b/src/bjb-settings.h
index 8189bef..2a08f26 100644
--- a/src/bjb-settings.h
+++ b/src/bjb-settings.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BJB_SETTINGS_H_
-#define _BJB_SETTINGS_H_
+#pragma once
 
 #include <glib-object.h>
 
@@ -54,5 +53,3 @@ gchar            *bjb_settings_get_system_font            (BjbSettings *self);
 void              show_bijiben_settings_window            (GtkWidget *parent_window);
 
 G_END_DECLS
-
-#endif /* _BJB_SETTINGS_H_ */
diff --git a/src/bjb-share.h b/src/bjb-share.h
index 32e4a3b..bd910d7 100644
--- a/src/bjb-share.h
+++ b/src/bjb-share.h
@@ -15,13 +15,9 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BJB_SHARE_H
-#define _BJB_SHARE_H
+#pragma once
 
 #include <libbiji/libbiji.h>
 #include <gtk/gtk.h>
 
 gboolean on_email_note_callback(GtkWidget *widget, BijiNoteObj *note) ;
- 
-#endif
-
diff --git a/src/bjb-window-base.h b/src/bjb-window-base.h
index 6777970..b991edc 100644
--- a/src/bjb-window-base.h
+++ b/src/bjb-window-base.h
@@ -1,5 +1,4 @@
-#ifndef _BJB_WINDOW_BASE_H
-#define _BJB_WINDOW_BASE_H
+#pragma once
 
 #include <gtk/gtk.h>
 #include <libbiji/libbiji.h>
@@ -66,6 +65,3 @@ void                   bjb_window_base_set_active (BjbWindowBase *self, gboolean
 
 
 gboolean               bjb_window_base_is_detached (BjbWindowBase *self);
-
-
-#endif /* _BJB_WINDOW_BASE_H */
diff --git a/src/libbiji/biji-date-time.h b/src/libbiji/biji-date-time.h
index 87bab99..7dd3983 100644
--- a/src/libbiji/biji-date-time.h
+++ b/src/libbiji/biji-date-time.h
@@ -14,9 +14,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program.  If not, see <http://www.gnu.org/licenses/>.*/
 
-#ifndef _BIJI_DATE_TIME_H
-#define _BIJI_DATE_TIME_H
-
+#pragma once
 
 #include <glib-object.h>
 #include <glib/gprintf.h>
@@ -28,6 +26,3 @@ const gchar      *biji_get_time_diff_with_time            (glong sec_since_epoch
 
 
 gint64            iso8601_to_gint64                       (gchar *iso8601);
-
-
-#endif /* _BIJI_DATE_TIME_H */
diff --git a/src/libbiji/biji-error.h b/src/libbiji/biji-error.h
index a4b3de3..bc47890 100644
--- a/src/libbiji/biji-error.h
+++ b/src/libbiji/biji-error.h
@@ -17,9 +17,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_ERROR_H
-#define _BIJI_ERROR_H
-
+#pragma once
 
 #include <gio/gio.h>
 
@@ -49,5 +47,3 @@ GError              *biji_error_new                        (BijiErrorType type,
 
 
 G_END_DECLS
-
-#endif /* _BIJI_ERROR_H */
diff --git a/src/libbiji/biji-info-set.h b/src/libbiji/biji-info-set.h
index e606420..53ee842 100644
--- a/src/libbiji/biji-info-set.h
+++ b/src/libbiji/biji-info-set.h
@@ -26,9 +26,7 @@
  */
 
 
-#ifndef _BIJI_INFO_SET_H_
-#define _BIJI_INFO_SET_H_ 1
-
+#pragma once
 
 #include <glib-object.h>
 
@@ -60,5 +58,3 @@ typedef struct
 BijiInfoSet * biji_info_set_new (void);
 
 void biji_info_set_free (BijiInfoSet *info);
-
-#endif /* _BIJI_NOTE_ID_H_ */
diff --git a/src/libbiji/biji-item.h b/src/libbiji/biji-item.h
index 8cca85c..5221f14 100644
--- a/src/libbiji/biji-item.h
+++ b/src/libbiji/biji-item.h
@@ -18,8 +18,7 @@
  */
 
 
-#ifndef BIJI_ITEM_H_
-#define BIJI_ITEM_H_ 1
+#pragma once
 
 #include <cairo-gobject.h>
 #include <glib-object.h>
@@ -136,5 +135,3 @@ gboolean         biji_item_add_notebook  (BijiItem *item, BijiItem *collection,
 gboolean         biji_item_remove_notebook   (BijiItem *item, BijiItem *collection);
 
 G_END_DECLS
-
-#endif /* BIJI_ITEM_H_ */
diff --git a/src/libbiji/biji-manager.h b/src/libbiji/biji-manager.h
index 57c5afe..a366161 100644
--- a/src/libbiji/biji-manager.h
+++ b/src/libbiji/biji-manager.h
@@ -1,5 +1,4 @@
-#ifndef _BIJI_MANAGER_H_
-#define _BIJI_MANAGER_H_
+#pragma once
 
 #include <glib-object.h>
 #include <tracker-sparql.h>
@@ -125,5 +124,3 @@ BijiNoteObj     *biji_manager_note_new_full         (BijiManager   *manager,
 
 
 G_END_DECLS
-
-#endif /* _BIJI_MANAGER_H_ */
diff --git a/src/libbiji/biji-note-id.h b/src/libbiji/biji-note-id.h
index 2d34538..e06c478 100644
--- a/src/libbiji/biji-note-id.h
+++ b/src/libbiji/biji-note-id.h
@@ -16,8 +16,7 @@
  */
 
 
-#ifndef _BIJI_NOTE_ID_H_
-#define _BIJI_NOTE_ID_H_
+#pragma once
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -71,5 +70,3 @@ BijiNoteID        *biji_note_id_new_from_info                     (BijiInfoSet *
 
 
 G_END_DECLS
-
-#endif /* _BIJI_NOTE_ID_H_ */
diff --git a/src/libbiji/biji-note-obj.h b/src/libbiji/biji-note-obj.h
index 19f2ac2..77c995a 100644
--- a/src/libbiji/biji-note-obj.h
+++ b/src/libbiji/biji-note-obj.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_NOTE_OBJ_H_
-#define _BIJI_NOTE_OBJ_H_
+#pragma once
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -206,5 +205,3 @@ void             biji_note_obj_editor_paste                  (BijiNoteObj *note)
 
 
 G_END_DECLS
-
-#endif /* _BIJI_NOTE_OBJ_H_ */
diff --git a/src/libbiji/biji-notebook.h b/src/libbiji/biji-notebook.h
index 567f502..8a1f2e8 100644
--- a/src/libbiji/biji-notebook.h
+++ b/src/libbiji/biji-notebook.h
@@ -18,8 +18,7 @@
  */
 
 
-#ifndef BIJI_NOTEBOOK_H_
-#define BIJI_NOTEBOOK_H_ 1
+#pragma once
 
 #include "biji-item.h"
 
@@ -39,5 +38,3 @@ BijiNotebook * biji_notebook_new (GObject *manager, gchar *urn, gchar *name, gin
 void             biji_notebook_refresh (BijiNotebook *collection);
 
 G_END_DECLS
-
-#endif /* BIJI_NOTEBOOK_H_ */
diff --git a/src/libbiji/biji-string.h b/src/libbiji/biji-string.h
index d9a8cef..db4f9b7 100644
--- a/src/libbiji/biji-string.h
+++ b/src/libbiji/biji-string.h
@@ -15,9 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
-#ifndef _BIJI_STRING__H
-#define _BIJI_STRING__H
+#pragma once
 
 #include <glib.h>
 
@@ -32,7 +30,3 @@ gchar * biji_str_replace (const gchar *string, const gchar *as_is, const gchar *
 gchar * biji_str_mass_replace (const gchar *string, ...) G_GNUC_NULL_TERMINATED ;
 
 G_END_DECLS
-
-#endif /* _BIJI_STRING__H */
-
-
diff --git a/src/libbiji/biji-timeout.h b/src/libbiji/biji-timeout.h
index edf7f24..23d8127 100644
--- a/src/libbiji/biji-timeout.h
+++ b/src/libbiji/biji-timeout.h
@@ -16,8 +16,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_TIMEOUT_H_
-#define _BIJI_TIMEOUT_H_
+#pragma once
 
 #include <glib-object.h>
 
@@ -36,5 +35,3 @@ void biji_timeout_cancel (BijiTimeout *self);
 void biji_timeout_free (BijiTimeout *self);
 
 G_END_DECLS
-
-#endif /* _BIJI_TIMEOUT_H_ */
diff --git a/src/libbiji/biji-tracker.h b/src/libbiji/biji-tracker.h
index e9dcc2f..6fd56b5 100644
--- a/src/libbiji/biji-tracker.h
+++ b/src/libbiji/biji-tracker.h
@@ -16,8 +16,7 @@
  */
 
 
-#ifndef _BIJI_TRACKER_H
-#define _BIJI_TRACKER_H
+#pragma once
 
 #include <gtk/gtk.h>
 #include <tracker-sparql.h>
@@ -118,5 +117,3 @@ void        biji_tracker_check_for_info                (BijiManager *manager,
                                                         gint64 mtime,
                                                         BijiInfoCallback callback,
                                                         gpointer user_data);
-
-#endif /*_BIJI_TRACKER_H*/
diff --git a/src/libbiji/biji-zeitgeist.h b/src/libbiji/biji-zeitgeist.h
index 165a714..8434c0c 100644
--- a/src/libbiji/biji-zeitgeist.h
+++ b/src/libbiji/biji-zeitgeist.h
@@ -14,11 +14,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program.  If not, see <http://www.gnu.org/licenses/>.*/
 
-
-
-
-#ifndef _BIJI_ZEITGEIST_H
-#define _BIJI_ZEITGEIST_H
+#pragma once
 
 #ifdef BUILD_ZEITGEIST
 
@@ -34,7 +30,3 @@ void                    insert_zeitgeist                (BijiNoteObj *note,
                                                          const gchar *zg_interpretation);
 
 #endif /* BUILD_ZEITGEIST */
-
-#endif /* _BIJI_ZEITGEIST_H */
-
-
diff --git a/src/libbiji/deserializer/biji-lazy-deserializer.h 
b/src/libbiji/deserializer/biji-lazy-deserializer.h
index b222770..5312683 100644
--- a/src/libbiji/deserializer/biji-lazy-deserializer.h
+++ b/src/libbiji/deserializer/biji-lazy-deserializer.h
@@ -16,8 +16,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_LAZY_DESERIALIZER_H_
-#define _BIJI_LAZY_DESERIALIZER_H_
+#pragma once
 
 #include "../biji-note-obj.h"
 
@@ -30,6 +29,3 @@ G_DECLARE_FINAL_TYPE (BijiLazyDeserializer, biji_lazy_deserializer, BIJI, LAZY_D
 gboolean biji_lazy_deserialize (BijiNoteObj *note);
 
 G_END_DECLS
-
-#endif /* _BIJI_LAZY_DESERIALIZER _H_ */
-
diff --git a/src/libbiji/deserializer/biji-tomboy-reader.h b/src/libbiji/deserializer/biji-tomboy-reader.h
index bb57ca0..0d6394f 100644
--- a/src/libbiji/deserializer/biji-tomboy-reader.h
+++ b/src/libbiji/deserializer/biji-tomboy-reader.h
@@ -17,9 +17,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
-#ifndef BIJI_TOMBOY_READER_H_
-#define BIJI_TOMBOY_READER_H_ 1
+#pragma once
 
 #include <glib-object.h>
 
@@ -37,5 +35,3 @@ gboolean             biji_tomboy_reader_read              (gchar *source,
 
 
 G_END_DECLS
-
-#endif /* BIJI_TOMBOY_READER_H_ */
diff --git a/src/libbiji/editor/biji-editor-selection.h b/src/libbiji/editor/biji-editor-selection.h
index 5c08e50..b958e05 100644
--- a/src/libbiji/editor/biji-editor-selection.h
+++ b/src/libbiji/editor/biji-editor-selection.h
@@ -16,8 +16,7 @@
  *
  */
 
-#ifndef E_EDITOR_SELECTION_H
-#define E_EDITOR_SELECTION_H
+#pragma once
 
 #include <glib-object.h>
 #include <webkit2/webkit2.h>
@@ -76,5 +75,3 @@ gboolean              e_editor_selection_get_strike_through
                                                        (EEditorSelection *selection);
 
 G_END_DECLS
-
-#endif /* E_EDITOR_SELECTION_H */
diff --git a/src/libbiji/editor/biji-webkit-editor.h b/src/libbiji/editor/biji-webkit-editor.h
index 71f997d..2c966ad 100644
--- a/src/libbiji/editor/biji-webkit-editor.h
+++ b/src/libbiji/editor/biji-webkit-editor.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_WEBKIT_EDITOR_H_
-#define _BIJI_WEBKIT_EDITOR_H_
+#pragma once
 
 #include <gtk/gtk.h>
 #include <webkit2/webkit2.h>
@@ -69,5 +68,3 @@ void biji_webkit_editor_redo (BijiWebkitEditor *self);
 void biji_webkit_editor_set_font (BijiWebkitEditor *self, gchar *font);
 
 G_END_DECLS
-
-#endif /* _WEBKIT_EDITOR_H_ */
diff --git a/src/libbiji/libbiji.h b/src/libbiji/libbiji.h
index 6826a75..5855190 100644
--- a/src/libbiji/libbiji.h
+++ b/src/libbiji/libbiji.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _LIB_BIJI_H
-#define _LIB_BIJI_H
+#pragma once
 
 #define _LIBBIJI_INSIDE_H
 
@@ -40,4 +39,3 @@
 
 
 #undef _LIBBIJI_INSIDE_H
-#endif /*_LIB_BIJI_H*/
diff --git a/src/libbiji/provider/biji-import-provider.h b/src/libbiji/provider/biji-import-provider.h
index 1af67fa..22e08e1 100644
--- a/src/libbiji/provider/biji-import-provider.h
+++ b/src/libbiji/provider/biji-import-provider.h
@@ -29,9 +29,7 @@
 /* As of today this is the direct class to be used by notemanager.
  * Later on manager might use different importProviders sub-classes */
 
-#ifndef BIJI_IMPORT_PROVIDER_H_
-#define BIJI_IMPORT_PROVIDER_H_ 1
-
+#pragma once
 
 #include "../biji-manager.h"
 #include "biji-provider.h"
@@ -71,5 +69,3 @@ BijiProvider           *biji_import_provider_new                  (BijiManager *
 
 
 G_END_DECLS
-
-#endif /* BIJI_IMPORT_PROVIDER_H_ */
diff --git a/src/libbiji/provider/biji-local-note.h b/src/libbiji/provider/biji-local-note.h
index 2bbb8f7..8a4fc59 100644
--- a/src/libbiji/provider/biji-local-note.h
+++ b/src/libbiji/provider/biji-local-note.h
@@ -15,9 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
-#ifndef BIJI_LOCAL_NOTE_H_
-#define BIJI_LOCAL_NOTE_H_ 1
+#pragma once
 
 #include "biji-note-id.h"
 #include "biji-note-obj.h"
@@ -56,5 +54,3 @@ BijiNoteObj          *biji_local_note_new_from_info   (BijiProvider *provider,
                                                        BijiInfoSet *set);
 
 G_END_DECLS
-
-#endif /* BIJI_LOCAL_NOTE_H_ */
diff --git a/src/libbiji/provider/biji-local-provider.h b/src/libbiji/provider/biji-local-provider.h
index 2019d08..a7294dc 100644
--- a/src/libbiji/provider/biji-local-provider.h
+++ b/src/libbiji/provider/biji-local-provider.h
@@ -16,11 +16,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
-
-#ifndef BIJI_LOCAL_PROVIDER_H_
-#define BIJI_LOCAL_PROVIDER_H_ 1
-
+#pragma once
 
 #include "biji-manager.h"
 #include "biji-provider.h"
@@ -37,5 +33,3 @@ BijiProvider        *biji_local_provider_new                         (BijiManage
 
 
 G_END_DECLS
-
-#endif /* BIJI_LOCAL_PROVIDER_H_ */
diff --git a/src/libbiji/provider/biji-memo-note.h b/src/libbiji/provider/biji-memo-note.h
index 3bcdde1..734d135 100644
--- a/src/libbiji/provider/biji-memo-note.h
+++ b/src/libbiji/provider/biji-memo-note.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_MEMO_NOTE_H_
-#define _BIJI_MEMO_NOTE_H_ 1
+#pragma once
 
 #include <libecal/libecal.h>               /* ECalClient      */
 
@@ -66,6 +65,3 @@ BijiNoteObj           *biji_memo_note_new_from_info          (BijiMemoProvider *
 
 
 G_END_DECLS
-
-#endif /* _BIJI_MEMO_NOTE_H_ */
-
diff --git a/src/libbiji/provider/biji-memo-provider.h b/src/libbiji/provider/biji-memo-provider.h
index 18dcc75..c68d210 100644
--- a/src/libbiji/provider/biji-memo-provider.h
+++ b/src/libbiji/provider/biji-memo-provider.h
@@ -16,9 +16,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _BIJI_MEMO_PROVIDER_H_
-#define _BIJI_MEMO_PROVIDER_H_ 1
-
+#pragma once
 
 #include <libedataserver/libedataserver.h> /* ESourceRegistry */
 #include <libecal/libecal.h>               /* ECalClient      */
@@ -48,6 +46,3 @@ gboolean        time_val_from_icaltime          (icaltimetype *itt,
 
 
 G_END_DECLS
-
-#endif /* _BIJI_MEMO_PROVIDER_H_ */
-
diff --git a/src/libbiji/provider/biji-own-cloud-note.h b/src/libbiji/provider/biji-own-cloud-note.h
index 8a25799..61a06fc 100644
--- a/src/libbiji/provider/biji-own-cloud-note.h
+++ b/src/libbiji/provider/biji-own-cloud-note.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef BIJI_OWN_CLOUD_NOTE_H_
-#define BIJI_OWN_CLOUD_NOTE_H_ 1
+#pragma once
 
 #include "../biji-note-obj.h"
 #include "../biji-note-id.h"
@@ -58,5 +57,3 @@ BijiNoteObj        *biji_own_cloud_note_new_from_info           (BijiOwnCloudPro
                                                                  gboolean     online);
 
 G_END_DECLS
-
-#endif /* BIJI_OWN_CLOUD_NOTE_H_ */
diff --git a/src/libbiji/provider/biji-own-cloud-provider.h b/src/libbiji/provider/biji-own-cloud-provider.h
index 2915e13..57f8c34 100644
--- a/src/libbiji/provider/biji-own-cloud-provider.h
+++ b/src/libbiji/provider/biji-own-cloud-provider.h
@@ -15,9 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
-#ifndef BIJI_OWN_CLOUD_PROVIDER_H_
-#define BIJI_OWN_CLOUD_PROVIDER_H_ 1
+#pragma once
 
 #include "biji-provider.h"
 
@@ -63,5 +61,3 @@ gchar            *biji_own_cloud_provider_get_readable_path (BijiOwnCloudProvide
 
 
 G_END_DECLS
-
-#endif /* BIJI_OWN_CLOUD_PROVIDER_H_ */
diff --git a/src/libbiji/provider/biji-provider.h b/src/libbiji/provider/biji-provider.h
index 5f9dfe1..56cecce 100644
--- a/src/libbiji/provider/biji-provider.h
+++ b/src/libbiji/provider/biji-provider.h
@@ -15,8 +15,7 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef BIJI_PROVIDER_H_
-#define BIJI_PROVIDER_H_ 1
+#pragma once
 
 #include <glib-object.h>
 #include <glib/gi18n.h>  // translate providers type
@@ -144,5 +143,3 @@ const BijiProviderInfo    *biji_provider_get_info             (BijiProvider *pro
 void                       biji_provider_abort                (BijiProvider *provider);
 
 G_END_DECLS
-
-#endif /* BIJI_PROVIDER_H_ */
diff --git a/src/libbiji/serializer/biji-lazy-serializer.h b/src/libbiji/serializer/biji-lazy-serializer.h
index 439a3f7..9839b3f 100644
--- a/src/libbiji/serializer/biji-lazy-serializer.h
+++ b/src/libbiji/serializer/biji-lazy-serializer.h
@@ -22,8 +22,7 @@
  *
  * This format is NOT compatible with anything as of today.*/
 
-#ifndef _BIJI_LAZY_SERIALIZER_H_
-#define _BIJI_LAZY_SERIALIZER_H_
+#pragma once
 
 #include "../biji-note-obj.h"
 
@@ -36,6 +35,3 @@ G_DECLARE_FINAL_TYPE (BijiLazySerializer, biji_lazy_serializer, BIJI, LAZY_SERIA
 gboolean         biji_lazy_serialize                     (BijiNoteObj *note);
 
 G_END_DECLS
-
-#endif /* _BIJI_LAZY_SERIALIZER_H_ */
-


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