Skip to content

Commit

Permalink
Remove include guard
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Dec 31, 2023
1 parent 44cd433 commit 59e4fe9
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 54 deletions.
4 changes: 1 addition & 3 deletions src/imports/controls-private/extensions/fluiddecorationv1.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

#ifndef FLUIDDECORATIONV1_H
#define FLUIDDECORATIONV1_H
#pragma once

#include <QMap>
#include <QWindow>
Expand Down Expand Up @@ -56,4 +55,3 @@ class FluidDecoration : public QWaylandClientExtensionTemplate<FluidDecoration>
QColor m_bgColor = Qt::transparent;
};

#endif // FLUIDDECORATIONV1_H
4 changes: 1 addition & 3 deletions src/imports/controls-private/windowdecoration.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef WINDOWDECORATION_H
#define WINDOWDECORATION_H
#pragma once

#include <QObject>
#include <QColor>
Expand Down Expand Up @@ -69,4 +68,3 @@ private Q_SLOTS:
#endif
};

#endif // WINDOWDECORATION_H
4 changes: 1 addition & 3 deletions src/imports/controls/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef COLOR_H
#define COLOR_H
#pragma once

#include <QColor>
#include <QObject>
Expand All @@ -37,4 +36,3 @@ class Color : public QObject
static Color *create(QQmlEngine *engine, QJSEngine *jsEngine);
};

#endif // COLOR_H
4 changes: 1 addition & 3 deletions src/imports/controls/controlsutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef CONTROLSUTILS_H
#define CONTROLSUTILS_H
#pragma once

#include <QObject>
#include <QUrl>
Expand All @@ -35,4 +34,3 @@ class ControlsUtils : public QObject
QUrl m_baseUrl;
};

#endif // CONTROLSUTILS_H
4 changes: 1 addition & 3 deletions src/imports/controls/inputregion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

#ifndef INPUTREGION_H
#define INPUTREGION_H
#pragma once

#include <QQmlEngine>
#include <QQmlListProperty>
Expand Down Expand Up @@ -110,4 +109,3 @@ private Q_SLOTS:
void setInputRegion();
};

#endif // INPUTREGION_H
4 changes: 1 addition & 3 deletions src/imports/core/clipboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef CLIPBOARD_H
#define CLIPBOARD_H
#pragma once

#include <QObject>
#include <QClipboard>
Expand Down Expand Up @@ -41,4 +40,3 @@ public Q_SLOTS:
QClipboard *m_clipboard = nullptr;
};

#endif // CLIPBOARD_H
4 changes: 1 addition & 3 deletions src/imports/core/coreutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef COREUTILS_H
#define COREUTILS_H
#pragma once

#include <QObject>
#include <QUrl>
Expand All @@ -32,4 +31,3 @@ class CoreUtils : public QObject
static CoreUtils *create(QQmlEngine *engine, QJSEngine *jsEngine);
};

#endif // COREUTILS_H
4 changes: 1 addition & 3 deletions src/imports/core/dateutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
* $END_LICENSE$
*/

#ifndef DATEUTILS_H
#define DATEUTILS_H
#pragma once

#include <QObject>
#include <QDate>
Expand Down Expand Up @@ -45,4 +44,3 @@ class DateUtils : public QObject
static DateUtils *create(QQmlEngine *engine, QJSEngine *jsEngine);
};

#endif // DATEUTILS_H
4 changes: 1 addition & 3 deletions src/imports/core/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef DEVICE_H
#define DEVICE_H
#pragma once

#include <QObject>

Expand Down Expand Up @@ -66,4 +65,3 @@ private Q_SLOTS:
QScreen *m_screen;
};

#endif // DEVICE_H
4 changes: 1 addition & 3 deletions src/imports/core/standardpaths.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef STANDARDPATHS_H
#define STANDARDPATHS_H
#pragma once

#include <QObject>
#include <QQmlEngine>
Expand Down Expand Up @@ -53,4 +52,3 @@ class StandardPaths : public QObject
static StandardPaths *create(QQmlEngine *engine, QJSEngine *jsEngine);
};

#endif // STANDARDPATHS_H
4 changes: 1 addition & 3 deletions src/imports/templates/datepicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef DATEPICKER_H
#define DATEPICKER_H
#pragma once

#include <QDate>
#include <QQmlEngine>
Expand Down Expand Up @@ -76,4 +75,3 @@ class DatePicker : public Picker
QDate m_selectedDate;
};

#endif // DATEPICKER_H
4 changes: 1 addition & 3 deletions src/imports/templates/dateselector.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef DATESELECTOR_H
#define DATESELECTOR_H
#pragma once

#include <QDate>
#include <QQuickItem>
Expand Down Expand Up @@ -92,4 +91,3 @@ private Q_SLOTS:

QML_DECLARE_TYPE(DateSelector)

#endif // DATESELECTOR_H
4 changes: 1 addition & 3 deletions src/imports/templates/datetimepicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef DATETIMEPICKER_H
#define DATETIMEPICKER_H
#pragma once

#include <QDateTime>

Expand Down Expand Up @@ -84,4 +83,3 @@ class DateTimePicker : public Picker
QDateTime m_selectedDateTime;
};

#endif // DATETIMEPICKER_H
4 changes: 1 addition & 3 deletions src/imports/templates/picker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef PICKER_H
#define PICKER_H
#pragma once

#include <QLocale>
#include <QQuickItem>
Expand Down Expand Up @@ -83,4 +82,3 @@ class Picker : public QQuickItem
void updateLayout();
};

#endif // PICKER_H
4 changes: 1 addition & 3 deletions src/imports/templates/timepicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef TIMEPICKER_H
#define TIMEPICKER_H
#pragma once

#include <QTime>
#include <QQmlEngine>
Expand Down Expand Up @@ -46,4 +45,3 @@ class TimePicker : public Picker

QML_DECLARE_TYPE(TimePicker)

#endif // TIMEPICKER_H
4 changes: 1 addition & 3 deletions src/imports/templates/timeselector.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef TIMESELECTOR_H
#define TIMESELECTOR_H
#pragma once

#include <QQuickItem>
#include <QTime>
Expand Down Expand Up @@ -76,4 +75,3 @@ class TimeSelector : public QQuickItem

QML_DECLARE_TYPE(TimeSelector)

#endif // TIMESELECTOR_H
4 changes: 1 addition & 3 deletions src/imports/templates/yearmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef YEARMODEL_H
#define YEARMODEL_H
#pragma once

#include <QAbstractListModel>
#include <QDate>
Expand Down Expand Up @@ -58,4 +57,3 @@ class YearModel : public QAbstractListModel

QML_DECLARE_TYPE(YearModel)

#endif // YEARMODEL_H
4 changes: 1 addition & 3 deletions src/imports/templates/yearselector.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
* $END_LICENSE$
*/

#ifndef YEARSELECTOR_H
#define YEARSELECTOR_H
#pragma once

#include <QDate>
#include <QQuickItem>
Expand Down Expand Up @@ -83,4 +82,3 @@ class YearSelector : public QQuickItem

QML_DECLARE_TYPE(YearSelector)

#endif // YEARSELECTOR_H

0 comments on commit 59e4fe9

Please sign in to comment.