[epiphany/wip/ephy-sync] ephy-sync: Use #pragma once



commit 59742f4f7bdd569da5edd6ae436610b361eff5a0
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Tue Sep 20 22:20:48 2016 +0300

    ephy-sync: Use #pragma once

 embed/ephy-notification-container.h      |    5 +----
 lib/widgets/ephy-password-notification.h |    5 +----
 src/ephy-sync-crypto.h                   |    5 +----
 src/ephy-sync-secret.h                   |    5 +----
 src/ephy-sync-service.h                  |    5 +----
 src/ephy-sync-utils.h                    |    5 +----
 6 files changed, 6 insertions(+), 24 deletions(-)
---
diff --git a/embed/ephy-notification-container.h b/embed/ephy-notification-container.h
index 30628ed..0f11a41 100644
--- a/embed/ephy-notification-container.h
+++ b/embed/ephy-notification-container.h
@@ -16,8 +16,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef EPHY_NOTIFICATION_CONTAINER_H
-#define EPHY_NOTIFICATION_CONTAINER_H
+#pragma once
 
 #include <libgd/gd.h>
 
@@ -48,5 +47,3 @@ void                       ephy_notification_container_add_notification (EphyNot
                                                                          GtkWidget                 
*notification);
 
 G_END_DECLS
-
-#endif
diff --git a/lib/widgets/ephy-password-notification.h b/lib/widgets/ephy-password-notification.h
index 152a595..2ff0e81 100644
--- a/lib/widgets/ephy-password-notification.h
+++ b/lib/widgets/ephy-password-notification.h
@@ -16,8 +16,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef EPHY_PASSWORD_NOTIFICATION_H
-#define EPHY_PASSWORD_NOTIFICATION_H
+#pragma once
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -33,5 +32,3 @@ EphyPasswordNotification *ephy_password_notification_new  (const char *user);
 void                      ephy_password_notification_show (EphyPasswordNotification *self);
 
 G_END_DECLS
-
-#endif
diff --git a/src/ephy-sync-crypto.h b/src/ephy-sync-crypto.h
index 1ae6478..be12602 100644
--- a/src/ephy-sync-crypto.h
+++ b/src/ephy-sync-crypto.h
@@ -16,8 +16,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef EPHY_SYNC_CRYPTO_H
-#define EPHY_SYNC_CRYPTO_H
+#pragma once
 
 #include <glib-object.h>
 #include <nettle/rsa.h>
@@ -123,5 +122,3 @@ char                      *ephy_sync_crypto_encode_hex              (guint8 *dat
 guint8                    *ephy_sync_crypto_decode_hex              (const char *hex);
 
 G_END_DECLS
-
-#endif
diff --git a/src/ephy-sync-secret.h b/src/ephy-sync-secret.h
index c2c285f..f807d2c 100644
--- a/src/ephy-sync-secret.h
+++ b/src/ephy-sync-secret.h
@@ -16,8 +16,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef EPHY_SYNC_SECRET_H
-#define EPHY_SYNC_SECRET_H
+#pragma once
 
 #include "ephy-sync-service.h"
 
@@ -41,5 +40,3 @@ void ephy_sync_secret_store_token   (const char        *email,
                                      EphySyncTokenType  type);
 
 G_END_DECLS
-
-#endif
diff --git a/src/ephy-sync-service.h b/src/ephy-sync-service.h
index b50c9a2..51d261d 100644
--- a/src/ephy-sync-service.h
+++ b/src/ephy-sync-service.h
@@ -16,8 +16,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef EPHY_SYNC_SERVICE_H
-#define EPHY_SYNC_SERVICE_H
+#pragma once
 
 #include "ephy-bookmark.h"
 #include "ephy-sync-utils.h"
@@ -80,5 +79,3 @@ void             ephy_sync_service_start_periodical_sync        (EphySyncService
 void             ephy_sync_service_stop_periodical_sync         (EphySyncService *self);
 
 G_END_DECLS
-
-#endif
diff --git a/src/ephy-sync-utils.h b/src/ephy-sync-utils.h
index f6c0f89..cfd9f6c 100644
--- a/src/ephy-sync-utils.h
+++ b/src/ephy-sync-utils.h
@@ -16,8 +16,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef EPHY_SYNC_UTILS_H
-#define EPHY_SYNC_UTILS_H
+#pragma once
 
 #include <glib-object.h>
 
@@ -48,5 +47,3 @@ guint8     *ephy_sync_utils_concatenate_bytes    (guint8 *bytes,
 gint64      ephy_sync_utils_current_time_seconds  (void);
 
 G_END_DECLS
-
-#endif


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