From 39a38d5679084b515276285c044d8a27e671adb1 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 18 Mar 2016 07:55:01 +0100 Subject: Wholesale conversion to #pragma once Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger --- src/shared/help/bookmarkmanager.h | 5 +---- src/shared/help/contentwindow.h | 5 +---- src/shared/help/filternamedialog.h | 5 +---- src/shared/help/helpicons.h | 5 +---- src/shared/help/indexwindow.h | 5 +---- src/shared/help/topicchooser.h | 5 +---- 6 files changed, 6 insertions(+), 24 deletions(-) (limited to 'src/shared/help') diff --git a/src/shared/help/bookmarkmanager.h b/src/shared/help/bookmarkmanager.h index 7bb4c71e7f..2526d8bc43 100644 --- a/src/shared/help/bookmarkmanager.h +++ b/src/shared/help/bookmarkmanager.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef BOOKMARKMANAGER_H -#define BOOKMARKMANAGER_H +#pragma once #include "ui_bookmarkdialog.h" @@ -188,5 +187,3 @@ private: BookmarkModel *listModel; QStandardItem *renameItem; }; - -#endif diff --git a/src/shared/help/contentwindow.h b/src/shared/help/contentwindow.h index 345769b258..99ec3cbca5 100644 --- a/src/shared/help/contentwindow.h +++ b/src/shared/help/contentwindow.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef CONTENTWINDOW_H -#define CONTENTWINDOW_H +#pragma once #include #include @@ -66,5 +65,3 @@ private: int m_expandDepth; bool m_isOpenInNewPageActionVisible; }; - -#endif // CONTENTWINDOW_H diff --git a/src/shared/help/filternamedialog.h b/src/shared/help/filternamedialog.h index a32df1c8f7..23f62e9528 100644 --- a/src/shared/help/filternamedialog.h +++ b/src/shared/help/filternamedialog.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef FILTERNAMEDIALOG_H -#define FILTERNAMEDIALOG_H +#pragma once #include #include "ui_filternamedialog.h" @@ -43,5 +42,3 @@ private slots: private: Ui::FilterNameDialogClass m_ui; }; - -#endif // FILTERNAMEDIALOG_H diff --git a/src/shared/help/helpicons.h b/src/shared/help/helpicons.h index af55edb552..cc9ea64df1 100644 --- a/src/shared/help/helpicons.h +++ b/src/shared/help/helpicons.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef HELPICONS_H -#define HELPICONS_H +#pragma once #include @@ -44,5 +43,3 @@ const Utils::Icon MODE_HELP_FLAT_ACTIVE({ } // namespace Icons } // namespace Help - -#endif // HELPICONS_H diff --git a/src/shared/help/indexwindow.h b/src/shared/help/indexwindow.h index 14a0983124..d041ba399f 100644 --- a/src/shared/help/indexwindow.h +++ b/src/shared/help/indexwindow.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef INDEXWINDOW_H -#define INDEXWINDOW_H +#pragma once #include #include @@ -108,5 +107,3 @@ private: } // Internal } // Help - -#endif // INDEXWINDOW_H diff --git a/src/shared/help/topicchooser.h b/src/shared/help/topicchooser.h index 304551412a..a886b2b929 100644 --- a/src/shared/help/topicchooser.h +++ b/src/shared/help/topicchooser.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef TOPICCHOOSER_H -#define TOPICCHOOSER_H +#pragma once #include "ui_topicchooser.h" @@ -62,5 +61,3 @@ private: QModelIndex m_activedIndex; QSortFilterProxyModel *m_filterModel; }; - -#endif // TOPICCHOOSER_H -- cgit v1.2.3