diff --git a/src/imports/controls-private/extensions/fluiddecorationv1.h b/src/imports/controls-private/extensions/fluiddecorationv1.h index 4e6211cf..9deba253 100644 --- a/src/imports/controls-private/extensions/fluiddecorationv1.h +++ b/src/imports/controls-private/extensions/fluiddecorationv1.h @@ -2,8 +2,7 @@ // // SPDX-License-Identifier: MPL-2.0 -#ifndef FLUIDDECORATIONV1_H -#define FLUIDDECORATIONV1_H +#pragma once #include #include @@ -56,4 +55,3 @@ class FluidDecoration : public QWaylandClientExtensionTemplate QColor m_bgColor = Qt::transparent; }; -#endif // FLUIDDECORATIONV1_H diff --git a/src/imports/controls-private/windowdecoration.h b/src/imports/controls-private/windowdecoration.h index 2dbe382c..faeb65ed 100644 --- a/src/imports/controls-private/windowdecoration.h +++ b/src/imports/controls-private/windowdecoration.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef WINDOWDECORATION_H -#define WINDOWDECORATION_H +#pragma once #include #include @@ -69,4 +68,3 @@ private Q_SLOTS: #endif }; -#endif // WINDOWDECORATION_H diff --git a/src/imports/controls/color.h b/src/imports/controls/color.h index a14c35d9..cc048951 100644 --- a/src/imports/controls/color.h +++ b/src/imports/controls/color.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef COLOR_H -#define COLOR_H +#pragma once #include #include @@ -37,4 +36,3 @@ class Color : public QObject static Color *create(QQmlEngine *engine, QJSEngine *jsEngine); }; -#endif // COLOR_H diff --git a/src/imports/controls/controlsutils.h b/src/imports/controls/controlsutils.h index 17908b8d..94b139a2 100644 --- a/src/imports/controls/controlsutils.h +++ b/src/imports/controls/controlsutils.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef CONTROLSUTILS_H -#define CONTROLSUTILS_H +#pragma once #include #include @@ -35,4 +34,3 @@ class ControlsUtils : public QObject QUrl m_baseUrl; }; -#endif // CONTROLSUTILS_H diff --git a/src/imports/controls/inputregion.h b/src/imports/controls/inputregion.h index 2b525a23..73fb4405 100644 --- a/src/imports/controls/inputregion.h +++ b/src/imports/controls/inputregion.h @@ -2,8 +2,7 @@ // // SPDX-License-Identifier: MPL-2.0 -#ifndef INPUTREGION_H -#define INPUTREGION_H +#pragma once #include #include @@ -110,4 +109,3 @@ private Q_SLOTS: void setInputRegion(); }; -#endif // INPUTREGION_H diff --git a/src/imports/core/clipboard.h b/src/imports/core/clipboard.h index 6248aced..401ef4e7 100644 --- a/src/imports/core/clipboard.h +++ b/src/imports/core/clipboard.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef CLIPBOARD_H -#define CLIPBOARD_H +#pragma once #include #include @@ -41,4 +40,3 @@ public Q_SLOTS: QClipboard *m_clipboard = nullptr; }; -#endif // CLIPBOARD_H diff --git a/src/imports/core/coreutils.h b/src/imports/core/coreutils.h index c70aa4eb..55eb6f29 100644 --- a/src/imports/core/coreutils.h +++ b/src/imports/core/coreutils.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef COREUTILS_H -#define COREUTILS_H +#pragma once #include #include @@ -32,4 +31,3 @@ class CoreUtils : public QObject static CoreUtils *create(QQmlEngine *engine, QJSEngine *jsEngine); }; -#endif // COREUTILS_H diff --git a/src/imports/core/dateutils.h b/src/imports/core/dateutils.h index 036f4da7..5ce28c96 100644 --- a/src/imports/core/dateutils.h +++ b/src/imports/core/dateutils.h @@ -13,8 +13,7 @@ * $END_LICENSE$ */ -#ifndef DATEUTILS_H -#define DATEUTILS_H +#pragma once #include #include @@ -45,4 +44,3 @@ class DateUtils : public QObject static DateUtils *create(QQmlEngine *engine, QJSEngine *jsEngine); }; -#endif // DATEUTILS_H diff --git a/src/imports/core/device.h b/src/imports/core/device.h index f96a57e9..b6d0f16f 100644 --- a/src/imports/core/device.h +++ b/src/imports/core/device.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef DEVICE_H -#define DEVICE_H +#pragma once #include @@ -66,4 +65,3 @@ private Q_SLOTS: QScreen *m_screen; }; -#endif // DEVICE_H diff --git a/src/imports/core/standardpaths.h b/src/imports/core/standardpaths.h index 5570ff9d..139c4c61 100644 --- a/src/imports/core/standardpaths.h +++ b/src/imports/core/standardpaths.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef STANDARDPATHS_H -#define STANDARDPATHS_H +#pragma once #include #include @@ -53,4 +52,3 @@ class StandardPaths : public QObject static StandardPaths *create(QQmlEngine *engine, QJSEngine *jsEngine); }; -#endif // STANDARDPATHS_H diff --git a/src/imports/templates/datepicker.h b/src/imports/templates/datepicker.h index e2262cd7..0ed0d82d 100644 --- a/src/imports/templates/datepicker.h +++ b/src/imports/templates/datepicker.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef DATEPICKER_H -#define DATEPICKER_H +#pragma once #include #include @@ -76,4 +75,3 @@ class DatePicker : public Picker QDate m_selectedDate; }; -#endif // DATEPICKER_H diff --git a/src/imports/templates/dateselector.h b/src/imports/templates/dateselector.h index ea6661ac..37b2ffa7 100644 --- a/src/imports/templates/dateselector.h +++ b/src/imports/templates/dateselector.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef DATESELECTOR_H -#define DATESELECTOR_H +#pragma once #include #include @@ -92,4 +91,3 @@ private Q_SLOTS: QML_DECLARE_TYPE(DateSelector) -#endif // DATESELECTOR_H diff --git a/src/imports/templates/datetimepicker.h b/src/imports/templates/datetimepicker.h index 40c9e5d9..31a2b528 100644 --- a/src/imports/templates/datetimepicker.h +++ b/src/imports/templates/datetimepicker.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef DATETIMEPICKER_H -#define DATETIMEPICKER_H +#pragma once #include @@ -84,4 +83,3 @@ class DateTimePicker : public Picker QDateTime m_selectedDateTime; }; -#endif // DATETIMEPICKER_H diff --git a/src/imports/templates/picker.h b/src/imports/templates/picker.h index 7460a60d..2daa74b5 100644 --- a/src/imports/templates/picker.h +++ b/src/imports/templates/picker.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef PICKER_H -#define PICKER_H +#pragma once #include #include @@ -83,4 +82,3 @@ class Picker : public QQuickItem void updateLayout(); }; -#endif // PICKER_H diff --git a/src/imports/templates/timepicker.h b/src/imports/templates/timepicker.h index 507085b9..07bab3d7 100644 --- a/src/imports/templates/timepicker.h +++ b/src/imports/templates/timepicker.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef TIMEPICKER_H -#define TIMEPICKER_H +#pragma once #include #include @@ -46,4 +45,3 @@ class TimePicker : public Picker QML_DECLARE_TYPE(TimePicker) -#endif // TIMEPICKER_H diff --git a/src/imports/templates/timeselector.h b/src/imports/templates/timeselector.h index ffbec2e0..d3f30678 100644 --- a/src/imports/templates/timeselector.h +++ b/src/imports/templates/timeselector.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef TIMESELECTOR_H -#define TIMESELECTOR_H +#pragma once #include #include @@ -76,4 +75,3 @@ class TimeSelector : public QQuickItem QML_DECLARE_TYPE(TimeSelector) -#endif // TIMESELECTOR_H diff --git a/src/imports/templates/yearmodel.h b/src/imports/templates/yearmodel.h index b4ff5a47..e4f3c9e8 100644 --- a/src/imports/templates/yearmodel.h +++ b/src/imports/templates/yearmodel.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef YEARMODEL_H -#define YEARMODEL_H +#pragma once #include #include @@ -58,4 +57,3 @@ class YearModel : public QAbstractListModel QML_DECLARE_TYPE(YearModel) -#endif // YEARMODEL_H diff --git a/src/imports/templates/yearselector.h b/src/imports/templates/yearselector.h index 209a357f..81ba9088 100644 --- a/src/imports/templates/yearselector.h +++ b/src/imports/templates/yearselector.h @@ -12,8 +12,7 @@ * $END_LICENSE$ */ -#ifndef YEARSELECTOR_H -#define YEARSELECTOR_H +#pragma once #include #include @@ -83,4 +82,3 @@ class YearSelector : public QQuickItem QML_DECLARE_TYPE(YearSelector) -#endif // YEARSELECTOR_H