From 517106c7e90bc7d530a148091f71e82fdf81c866 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 16 Dec 2020 23:05:15 +0100 Subject: [PATCH] add standard comment to #endif's --- Tests/UnitTests/gui2/libtestmachinery/folderbasedtest.h | 2 +- Tests/UnitTests/gui2/libtestmachinery/google_test.h | 2 +- Tests/UnitTests/gui2/libtestmachinery/test_utils.h | 4 ++-- Tests/UnitTests/gui2/libtestmachinery/widgetbasedtest.h | 2 +- gui2/sldeditor/sldviewwidget.h | 2 +- mvvm/model/mvvm/interfaces/applicationmodelsinterface.h | 2 +- mvvm/model/mvvm/serialization/jsondocument.h | 2 +- mvvm/model/mvvm/utils/mathconstants.h | 2 +- mvvm/tests/libtestmachinery/folderbasedtest.h | 2 +- mvvm/tests/libtestmachinery/google_test.h | 2 +- mvvm/tests/libtestmachinery/mockinterfaces.h | 6 +++--- mvvm/tests/libtestmachinery/test_utils.h | 2 +- mvvm/tests/libtestmachinery/widgetbasedtest.h | 2 +- mvvm/tests/testview/customplot_test_utils.h | 2 +- mvvm/view/mvvm/plotting/customplotproxywidget.h | 2 +- mvvm/view/mvvm/widgets/allitemstreeview.h | 2 +- 16 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Tests/UnitTests/gui2/libtestmachinery/folderbasedtest.h b/Tests/UnitTests/gui2/libtestmachinery/folderbasedtest.h index 9e5163497d0..6e1fd7ce7ad 100644 --- a/Tests/UnitTests/gui2/libtestmachinery/folderbasedtest.h +++ b/Tests/UnitTests/gui2/libtestmachinery/folderbasedtest.h @@ -30,4 +30,4 @@ protected: std::string m_test_dir; //! main directory of given test }; -#endif // FOLDERBASEDTEST_H +#endif // FOLDERBASEDTEST_H diff --git a/Tests/UnitTests/gui2/libtestmachinery/google_test.h b/Tests/UnitTests/gui2/libtestmachinery/google_test.h index 6a34e285c88..2a146bca84c 100644 --- a/Tests/UnitTests/gui2/libtestmachinery/google_test.h +++ b/Tests/UnitTests/gui2/libtestmachinery/google_test.h @@ -12,4 +12,4 @@ #include <gtest/gtest.h> -#endif +#endif // GOOGLETEST_H diff --git a/Tests/UnitTests/gui2/libtestmachinery/test_utils.h b/Tests/UnitTests/gui2/libtestmachinery/test_utils.h index bf48c70799a..7ff41f17266 100644 --- a/Tests/UnitTests/gui2/libtestmachinery/test_utils.h +++ b/Tests/UnitTests/gui2/libtestmachinery/test_utils.h @@ -29,7 +29,7 @@ class SessionModel; namespace TestUtils { //! Returns full path to the main test folder, as defined by CMake at compile time. -//! Shoud point to CMAKE_BINARY_DIR/test_output +//! Should point to CMAKE_BINARY_DIR/test_output std::string TestOutputDir(); //! Creates test directory in main test folder and returns full path. @@ -60,4 +60,4 @@ std::vector<T> toStringVector(Args&&... args) { } // namespace TestUtils -#endif +#endif // TESTUTILS_H diff --git a/Tests/UnitTests/gui2/libtestmachinery/widgetbasedtest.h b/Tests/UnitTests/gui2/libtestmachinery/widgetbasedtest.h index dc7fe2103bd..309288910e4 100644 --- a/Tests/UnitTests/gui2/libtestmachinery/widgetbasedtest.h +++ b/Tests/UnitTests/gui2/libtestmachinery/widgetbasedtest.h @@ -28,4 +28,4 @@ protected: static QApplication* m_app; }; -#endif // WIDGETBASEDTEST_H +#endif // WIDGETBASEDTEST_H diff --git a/gui2/sldeditor/sldviewwidget.h b/gui2/sldeditor/sldviewwidget.h index 9dc2432803e..aa40ececb3a 100644 --- a/gui2/sldeditor/sldviewwidget.h +++ b/gui2/sldeditor/sldviewwidget.h @@ -38,4 +38,4 @@ private: } // namespace gui2 -#endif +#endif // DAREFL_SLDEDITOR_SLDVIEWWIDGET_H diff --git a/mvvm/model/mvvm/interfaces/applicationmodelsinterface.h b/mvvm/model/mvvm/interfaces/applicationmodelsinterface.h index 02d502f6880..9b0859784ff 100644 --- a/mvvm/model/mvvm/interfaces/applicationmodelsinterface.h +++ b/mvvm/model/mvvm/interfaces/applicationmodelsinterface.h @@ -28,4 +28,4 @@ public: } // namespace ModelView -#endif // MVVM_INTERFACES_APPLICATIONMODELSINTERFACE_H +#endif // MVVM_INTERFACES_APPLICATIONMODELSINTERFACE_H diff --git a/mvvm/model/mvvm/serialization/jsondocument.h b/mvvm/model/mvvm/serialization/jsondocument.h index c954a68a89f..1c214ffaf97 100644 --- a/mvvm/model/mvvm/serialization/jsondocument.h +++ b/mvvm/model/mvvm/serialization/jsondocument.h @@ -36,4 +36,4 @@ private: } // namespace ModelView -#endif // MVVM_SERIALIZATION_ITEMBACKUPSTRATEGY_H +#endif // MVVM_SERIALIZATION_JSONDOCUMENT_H diff --git a/mvvm/model/mvvm/utils/mathconstants.h b/mvvm/model/mvvm/utils/mathconstants.h index 1935ea52ee6..a521b6ae192 100644 --- a/mvvm/model/mvvm/utils/mathconstants.h +++ b/mvvm/model/mvvm/utils/mathconstants.h @@ -14,4 +14,4 @@ #define M_PI 3.14159265358979323846264338327950288 /* pi */ #endif -#endif +#endif // MVVM_UTILS_MATHCONSTANTS_H diff --git a/mvvm/tests/libtestmachinery/folderbasedtest.h b/mvvm/tests/libtestmachinery/folderbasedtest.h index 5576219141f..897d13cfd21 100644 --- a/mvvm/tests/libtestmachinery/folderbasedtest.h +++ b/mvvm/tests/libtestmachinery/folderbasedtest.h @@ -30,4 +30,4 @@ protected: std::string m_test_dir; //! main directory of given test }; -#endif // FOLDERBASEDTEST_H +#endif // FOLDERBASEDTEST_H diff --git a/mvvm/tests/libtestmachinery/google_test.h b/mvvm/tests/libtestmachinery/google_test.h index a2f026cdd0c..066723a86a8 100644 --- a/mvvm/tests/libtestmachinery/google_test.h +++ b/mvvm/tests/libtestmachinery/google_test.h @@ -14,4 +14,4 @@ #include "mvvm/model/customvariants.h" #include <gtest/gtest.h> -#endif +#endif // GOOGLETEST_H diff --git a/mvvm/tests/libtestmachinery/mockinterfaces.h b/mvvm/tests/libtestmachinery/mockinterfaces.h index 8d151700a89..511d4cffefa 100644 --- a/mvvm/tests/libtestmachinery/mockinterfaces.h +++ b/mvvm/tests/libtestmachinery/mockinterfaces.h @@ -7,8 +7,8 @@ // // ************************************************************************** // -#ifndef MOCKINTERFACES_h -#define MOCKINTERFACES_h +#ifndef MOCKINTERFACES_H +#define MOCKINTERFACES_H #include "mvvm/model/tagrow.h" #include <string> @@ -48,4 +48,4 @@ public: virtual void onAboutToRemoveItem(ModelView::SessionItem*, ModelView::TagRow) = 0; }; -#endif // MOCKINTERFACES_h +#endif // MOCKINTERFACES_H diff --git a/mvvm/tests/libtestmachinery/test_utils.h b/mvvm/tests/libtestmachinery/test_utils.h index fabbea39bed..84350dca763 100644 --- a/mvvm/tests/libtestmachinery/test_utils.h +++ b/mvvm/tests/libtestmachinery/test_utils.h @@ -97,4 +97,4 @@ template <typename T, typename... Args> std::vector<T> toVector(Args&&... args) } // namespace TestUtils -#endif +#endif // TESTUTILS_H diff --git a/mvvm/tests/libtestmachinery/widgetbasedtest.h b/mvvm/tests/libtestmachinery/widgetbasedtest.h index 87ce5ddff3e..1e4d194194e 100644 --- a/mvvm/tests/libtestmachinery/widgetbasedtest.h +++ b/mvvm/tests/libtestmachinery/widgetbasedtest.h @@ -28,4 +28,4 @@ protected: static QApplication* m_app; }; -#endif // WIDGETBASEDTEST_H +#endif // WIDGETBASEDTEST_H diff --git a/mvvm/tests/testview/customplot_test_utils.h b/mvvm/tests/testview/customplot_test_utils.h index 0d4e68d411f..28337adaedd 100644 --- a/mvvm/tests/testview/customplot_test_utils.h +++ b/mvvm/tests/testview/customplot_test_utils.h @@ -49,4 +49,4 @@ template <typename T> T* GetPlottable(QCustomPlot* custom_plot) { Q_DECLARE_METATYPE(QCPRange) -#endif +#endif // CUSTOMPLOT_TEST_UTILS_H diff --git a/mvvm/view/mvvm/plotting/customplotproxywidget.h b/mvvm/view/mvvm/plotting/customplotproxywidget.h index 7cf53140f80..1b2bd140ed5 100644 --- a/mvvm/view/mvvm/plotting/customplotproxywidget.h +++ b/mvvm/view/mvvm/plotting/customplotproxywidget.h @@ -41,4 +41,4 @@ private: } // namespace ModelView -#endif // MVVM_PLOTTING_CUSTOMPLOTPROXYWIDGET_H +#endif // MVVM_PLOTTING_CUSTOMPLOTPROXYWIDGET_H diff --git a/mvvm/view/mvvm/widgets/allitemstreeview.h b/mvvm/view/mvvm/widgets/allitemstreeview.h index 63e3f6f0707..311d5a75362 100644 --- a/mvvm/view/mvvm/widgets/allitemstreeview.h +++ b/mvvm/view/mvvm/widgets/allitemstreeview.h @@ -28,4 +28,4 @@ public: } // namespace ModelView -#endif // MVVM_WIDGETS_ITEMSTREEVIEWINTERFACE_H +#endif // MVVM_WIDGETS_ALLITEMSTREEVIEW_H -- GitLab