summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorAlexandru Fazakas <alex.fazakas97@yahoo.com>2018-03-15 21:17:27 +0200
committerAlexandru Fazakas <alex.fazakas97@yahoo.com>2018-03-19 14:43:38 +0200
commit95ecfc8ea0629801ae1f8119f3be0b3526e6b147 (patch)
tree27dc3f769f9a4e43fb340cff2eaf4a8c0cf9ff54 /extensions
parentb1be1fc680d95264f7be6e0a1e3a45f597da6b80 (diff)
downloadnautilus-95ecfc8ea0629801ae1f8119f3be0b3526e6b147.tar.gz
general: Remove include guards in favor of pragma once
The traditional include guards are not as easy to handle and require extra thought into the names. Pragma once is an easier, more contributor friendly approach. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294 general: Remove include guards in favor of pragma once The traditional include guards are not as easy to handle and require extra thought into the names. Pragma once is an easier, more contributor friendly approach. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294
Diffstat (limited to 'extensions')
-rw-r--r--extensions/image-properties/nautilus-image-properties-page-provider.h7
-rw-r--r--extensions/image-properties/nautilus-image-properties-page.h7
-rw-r--r--extensions/sendto/nautilus-nste.h7
3 files changed, 6 insertions, 15 deletions
diff --git a/extensions/image-properties/nautilus-image-properties-page-provider.h b/extensions/image-properties/nautilus-image-properties-page-provider.h
index 90e41597a..59fd6f905 100644
--- a/extensions/image-properties/nautilus-image-properties-page-provider.h
+++ b/extensions/image-properties/nautilus-image-properties-page-provider.h
@@ -16,8 +16,7 @@
* along with Nautilus. If not, see <https://www.gnu.org/licenses/>.
*/
-#ifndef NAUTILUS_IMAGE_PROPERTIES_PAGE_PROVIDER_H
-#define NAUTILUS_IMAGE_PROPERTIES_PAGE_PROVIDER_H
+#pragma once
#include <glib-object.h>
@@ -28,6 +27,4 @@ G_DECLARE_FINAL_TYPE (NautilusImagesPropertiesPageProvider,
NAUTILUS, IMAGE_PROPERTIES_PAGE_PROVIDER,
GObject)
-void nautilus_image_properties_page_provider_load (GTypeModule *module);
-
-#endif
+void nautilus_image_properties_page_provider_load (GTypeModule *module); \ No newline at end of file
diff --git a/extensions/image-properties/nautilus-image-properties-page.h b/extensions/image-properties/nautilus-image-properties-page.h
index 0b3c5db81..5a2c3580a 100644
--- a/extensions/image-properties/nautilus-image-properties-page.h
+++ b/extensions/image-properties/nautilus-image-properties-page.h
@@ -16,8 +16,7 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
-#ifndef NAUTILUS_IMAGE_PROPERTIES_PAGE_H
-#define NAUTILUS_IMAGE_PROPERTIES_PAGE_H
+#pragma once
#include <gtk/gtk.h>
@@ -33,6 +32,4 @@ G_DECLARE_FINAL_TYPE (NautilusImagesPropertiesPage,
void nautilus_image_properties_page_load_from_file_info (NautilusImagesPropertiesPage *page,
NautilusFileInfo *file_info);
-NautilusImagesPropertiesPage *nautilus_image_properties_page_new (void);
-
-#endif
+NautilusImagesPropertiesPage *nautilus_image_properties_page_new (void); \ No newline at end of file
diff --git a/extensions/sendto/nautilus-nste.h b/extensions/sendto/nautilus-nste.h
index f29885a20..46f71040b 100644
--- a/extensions/sendto/nautilus-nste.h
+++ b/extensions/sendto/nautilus-nste.h
@@ -20,8 +20,7 @@
*
*/
-#ifndef NAUTILUS_NSTE_H
-#define NAUTILUS_NSTE_H
+#pragma once
#include <glib-object.h>
@@ -33,6 +32,4 @@ G_DECLARE_FINAL_TYPE (NautilusNste, nautilus_nste, NAUTILUS, NSTE, GObject)
void nautilus_nste_load (GTypeModule *module);
-G_END_DECLS
-
-#endif /* NAUTILUS_NSTE_H */
+G_END_DECLS \ No newline at end of file