Skip to content

Commit

Permalink
Convert header guard to pragma once
Browse files Browse the repository at this point in the history
This makes the code more readable.
  • Loading branch information
plfiorini committed Dec 23, 2023
1 parent f837670 commit 84b9b42
Show file tree
Hide file tree
Showing 219 changed files with 219 additions and 657 deletions.
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandbufferref.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDBUFFERREF_H
#define AURORA_COMPOSITOR_WAYLANDBUFFERREF_H
#pragma once

#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
#include <QtGui/QImage>
Expand Down Expand Up @@ -92,4 +91,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandBufferRef

} // namespace Aurora

#endif
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandclient.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDCLIENT_H
#define AURORA_COMPOSITOR_WAYLANDCLIENT_H
#pragma once

#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
#include <LiriAuroraCompositor/aurorawaylandqmlinclude.h>
Expand Down Expand Up @@ -78,4 +77,3 @@ public Q_SLOTS:

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDCLIENT_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandcompositor.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDCOMPOSITOR_H
#define AURORA_COMPOSITOR_WAYLANDCOMPOSITOR_H
#pragma once

#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
#include <LiriAuroraCompositor/aurorawaylandqmlinclude.h>
Expand Down Expand Up @@ -173,4 +172,3 @@ private Q_SLOTS:

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDCOMPOSITOR_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandcompositor_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDCOMPOSITOR_P_H
#define AURORA_COMPOSITOR_WAYLANDCOMPOSITOR_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -210,4 +209,3 @@ void WaylandCompositorPrivate::removeOutput(WaylandOutput *output)

} // namespace Aurora

#endif //QWAYLANDCOMPOSITOR_P_H
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
**
****************************************************************************/

#ifndef AURORA_COMPOSITOR_WAYLANDCOMPOSITORQUICKEXTENSIONS_P_H
#define AURORA_COMPOSITOR_WAYLANDCOMPOSITORQUICKEXTENSIONS_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -122,4 +121,3 @@ AURORA_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS(WaylandQtTextInputMethodMa

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDCOMPOSITORQUICKEXTENSIONS_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylanddestroylistener.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDDESTROYLISTENER_H
#define AURORA_COMPOSITOR_WAYLANDDESTROYLISTENER_H
#pragma once

#include <QtCore/QObject>
#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
Expand Down Expand Up @@ -38,4 +37,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandDestroyListener : public QObject

} // namespace Aurora

#endif /*QWAYLANDDESTROYLISTENER_H*/
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_WAYLAND_DESTROYLISTENER_P_H
#define AURORA_WAYLAND_DESTROYLISTENER_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -45,4 +44,3 @@ class WaylandDestroyListenerPrivate

} // namespace Aurora

#endif // AURORA_WAYLAND_DESTROYLISTENER_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylanddrag.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDDRAG_H
#define AURORA_COMPOSITOR_WAYLANDDRAG_H
#pragma once

#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
#include <LiriAuroraCompositor/aurorawaylandqmlinclude.h>
Expand Down Expand Up @@ -57,4 +56,3 @@ public Q_SLOTS:

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDDRAG_H
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDINPUTMETHODCONTROL_H
#define AURORA_COMPOSITOR_WAYLANDINPUTMETHODCONTROL_H
#pragma once

#include <QtGui/qtguiglobal.h>
#include <QtCore/QObject>
Expand Down Expand Up @@ -55,4 +54,3 @@ class WaylandInputMethodControl : public QObject

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDINPUTMETHODCONTROL_H
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDINPUTMETHODCONTROL_P_H
#define AURORA_COMPOSITOR_WAYLANDINPUTMETHODCONTROL_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -57,4 +56,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandInputMethodControlPrivate

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDINPUTMETHODCONTROL_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandkeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDKEYBOARD_H
#define AURORA_COMPOSITOR_WAYLANDKEYBOARD_H
#pragma once

#include <QtCore/QObject>

Expand Down Expand Up @@ -69,4 +68,3 @@ private Q_SLOTS:

} // namespace Aurora

#endif //QWAYLANDKEYBOARD_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandkeyboard_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_WAYLAND_KEYBOARD_P_H
#define AURORA_WAYLAND_KEYBOARD_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -125,4 +124,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandKeyboardPrivate : public PrivateServer:

} // namespace Aurora

#endif // AURORA_WAYLAND_KEYBOARD_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandkeymap.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDKEYMAP_H
#define AURORA_COMPOSITOR_WAYLANDKEYMAP_H
#pragma once

#include <QtCore/QObject>
#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
Expand Down Expand Up @@ -64,4 +63,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandKeymap : public QObject

} // namespace Aurora

#endif //QWAYLANDKEYMAP_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandkeymap_p.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDKEYMAP_P_H
#define AURORA_COMPOSITOR_WAYLANDKEYMAP_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -43,4 +42,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandKeymapPrivate

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDKEYMAP_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandmousetracker_p.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDMOUSETRACKER_P_H
#define AURORA_COMPOSITOR_WAYLANDMOUSETRACKER_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -69,4 +68,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandMouseTracker : public QQuickItem

} // namespace Aurora

#endif /*QWAYLANDMOUSETRACKER_P_H*/
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandoutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDOUTPUT_H
#define AURORA_COMPOSITOR_WAYLANDOUTPUT_H
#pragma once

#include <LiriAuroraCompositor/aurorawaylandqmlinclude.h>
#include <LiriAuroraCompositor/aurorawaylandcompositorextension.h>
Expand Down Expand Up @@ -164,4 +163,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandOutput : public WaylandObject

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDOUTPUT_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandoutput_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDOUTPUT_P_H
#define AURORA_COMPOSITOR_WAYLANDOUTPUT_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -126,4 +125,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandOutputPrivate : public PrivateServer::w

} // namespace Aurora

#endif /*QWAYLANDOUTPUT_P_H*/
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandoutputmode.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDOUTPUTMODE_H
#define AURORA_COMPOSITOR_WAYLANDOUTPUTMODE_H
#pragma once

#include <LiriAuroraCompositor/liriauroracompositorglobal.h>
#include <QtCore/QSize>
Expand Down Expand Up @@ -41,4 +40,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandOutputMode

Q_DECLARE_TYPEINFO(Aurora::Compositor::WaylandOutputMode, Q_MOVABLE_TYPE);

#endif // AURORA_COMPOSITOR_WAYLANDOUTPUTMODE_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandoutputmode_p.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDOUTPUTMODE_P_H
#define AURORA_COMPOSITOR_WAYLANDOUTPUTMODE_P_H
#pragma once

#include <LiriAuroraCompositor/WaylandOutput>

Expand Down Expand Up @@ -34,4 +33,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandOutputModePrivate

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDOUTPUTMODE_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandpointer.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDPOINTER_H
#define AURORA_COMPOSITOR_WAYLANDPOINTER_H
#pragma once

#include <LiriAuroraCompositor/WaylandCompositorExtension>

Expand Down Expand Up @@ -66,4 +65,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandPointer : public WaylandObject

} // namespace Aurora

#endif /*QWAYLANDPOINTER_H*/
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandpointer_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDPOINTER_P_H
#define AURORA_COMPOSITOR_WAYLANDPOINTER_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -77,4 +76,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandPointerPrivate : public PrivateServer::

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDPOINTER_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandquickchildren.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDQUICKCHILDREN_H
#define AURORA_COMPOSITOR_WAYLANDQUICKCHILDREN_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -44,4 +43,3 @@ namespace Compositor {

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDQUICKCHILDREN_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandquickcompositor.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDQUICKCOMPOSITOR_H
#define AURORA_COMPOSITOR_WAYLANDQUICKCOMPOSITOR_H
#pragma once

#include <LiriAuroraCompositor/aurorawaylandcompositor.h>
#include <QtQml/QQmlListProperty>
Expand Down Expand Up @@ -49,4 +48,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandQuickCompositor : public WaylandComposi

} // namespace Aurora

#endif
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDQUICKHARDWARELAYER_P_H
#define AURORA_COMPOSITOR_WAYLANDQUICKHARDWARELAYER_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -59,4 +58,3 @@ class LIRIAURORACOMPOSITOR_EXPORT WaylandQuickHardwareLayer : public QObject, pu

} // namespace Aurora

#endif // AURORA_COMPOSITOR_WAYLANDQUICKHARDWARELAYER_P_H
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandquickitem.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDSURFACEITEM_H
#define AURORA_COMPOSITOR_WAYLANDSURFACEITEM_H
#pragma once

#include <LiriAuroraCompositor/liriauroracompositorglobal.h>

Expand Down Expand Up @@ -172,4 +171,3 @@ private Q_SLOTS:

} // namespace Aurora

#endif
4 changes: 1 addition & 3 deletions src/compositor/compositor_api/aurorawaylandquickitem_p.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef AURORA_COMPOSITOR_WAYLANDQUICKITEM_P_H
#define AURORA_COMPOSITOR_WAYLANDQUICKITEM_P_H
#pragma once

//
// W A R N I N G
Expand Down Expand Up @@ -208,4 +207,3 @@ class WaylandQuickItemPrivate

} // namespace Aurora

#endif /*QWAYLANDQUICKITEM_P_H*/
Loading

0 comments on commit 84b9b42

Please sign in to comment.