diff --git a/src/wayland/appmenu_interface.h b/src/wayland/appmenu_interface.h index e8a5cbc6b2..d4df22e21f 100644 --- a/src/wayland/appmenu_interface.h +++ b/src/wayland/appmenu_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_APPMENU_INTERFACE_H -#define KWAYLAND_SERVER_APPMENU_INTERFACE_H +#pragma once #include #include @@ -97,5 +96,3 @@ private: }; } - -#endif diff --git a/src/wayland/clientconnection.h b/src/wayland/clientconnection.h index 8dffd9bd06..17e89b4f04 100644 --- a/src/wayland/clientconnection.h +++ b/src/wayland/clientconnection.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_CLIENTCONNECTION_H -#define KWAYLAND_SERVER_CLIENTCONNECTION_H +#pragma once #include @@ -141,5 +140,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::ClientConnection*) - -#endif diff --git a/src/wayland/compositor_interface.h b/src/wayland/compositor_interface.h index 239367e6d4..05163b6aec 100644 --- a/src/wayland/compositor_interface.h +++ b/src/wayland/compositor_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_COMPOSITOR_INTERFACE_H -#define WAYLAND_SERVER_COMPOSITOR_INTERFACE_H +#pragma once #include "region_interface.h" #include "surface_interface.h" @@ -53,5 +52,3 @@ private: }; } // namespace KWaylandServer - -#endif diff --git a/src/wayland/contrast_interface.h b/src/wayland/contrast_interface.h index 597bf6ceb1..fc8b45c954 100644 --- a/src/wayland/contrast_interface.h +++ b/src/wayland/contrast_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_CONTRAST_INTERFACE_H -#define KWAYLAND_SERVER_CONTRAST_INTERFACE_H +#pragma once #include @@ -73,5 +72,3 @@ private: }; } - -#endif diff --git a/src/wayland/datacontroldevice_v1_interface.h b/src/wayland/datacontroldevice_v1_interface.h index 8732378455..5a6711ead7 100644 --- a/src/wayland/datacontroldevice_v1_interface.h +++ b/src/wayland/datacontroldevice_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_CONTROL_DEVICE_INTERFACE_H -#define WAYLAND_SERVER_DATA_CONTROL_DEVICE_INTERFACE_H +#pragma once #include @@ -55,5 +54,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::DataControlDeviceV1Interface*) - -#endif diff --git a/src/wayland/datacontroldevicemanager_v1_interface.h b/src/wayland/datacontroldevicemanager_v1_interface.h index b3534d593e..c8d3843213 100644 --- a/src/wayland/datacontroldevicemanager_v1_interface.h +++ b/src/wayland/datacontroldevicemanager_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_CONTROL_DEVICE_MANAGER_INTERFACE_H -#define WAYLAND_SERVER_DATA_CONTROL_DEVICE_MANAGER_INTERFACE_H +#pragma once #include @@ -41,5 +40,3 @@ private: }; } - -#endif diff --git a/src/wayland/datacontroloffer_v1_interface.h b/src/wayland/datacontroloffer_v1_interface.h index ec9c25e570..fe93ff4314 100644 --- a/src/wayland/datacontroloffer_v1_interface.h +++ b/src/wayland/datacontroloffer_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_CONTROL_OFFER_INTERFACE_H -#define WAYLAND_SERVER_DATA_CONTROL_OFFER_INTERFACE_H +#pragma once #include @@ -47,5 +46,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::DataControlOfferV1Interface*) - -#endif diff --git a/src/wayland/datacontrolsource_v1_interface.h b/src/wayland/datacontrolsource_v1_interface.h index 352d325c02..caea63712d 100644 --- a/src/wayland/datacontrolsource_v1_interface.h +++ b/src/wayland/datacontrolsource_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_CONTROL_SOURCE_INTERFACE_H -#define WAYLAND_SERVER_DATA_CONTROL_SOURCE_INTERFACE_H +#pragma once #include "abstract_data_source.h" @@ -47,5 +46,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::DataControlSourceV1Interface*) - -#endif diff --git a/src/wayland/datadevice_interface.h b/src/wayland/datadevice_interface.h index a0d6fe5a89..a62156f962 100644 --- a/src/wayland/datadevice_interface.h +++ b/src/wayland/datadevice_interface.h @@ -5,8 +5,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_DEVICE_INTERFACE_H -#define WAYLAND_SERVER_DATA_DEVICE_INTERFACE_H +#pragma once #include @@ -133,5 +132,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::DataDeviceInterface*) - -#endif diff --git a/src/wayland/datadevicemanager_interface.h b/src/wayland/datadevicemanager_interface.h index af3fa115ee..027cce4303 100644 --- a/src/wayland/datadevicemanager_interface.h +++ b/src/wayland/datadevicemanager_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_DEVICE_MANAGER_INTERFACE_H -#define WAYLAND_SERVER_DATA_DEVICE_MANAGER_INTERFACE_H +#pragma once #include @@ -53,5 +52,3 @@ private: } Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::DataDeviceManagerInterface::DnDActions) - -#endif diff --git a/src/wayland/dataoffer_interface.h b/src/wayland/dataoffer_interface.h index 9278ce4474..04507102ff 100644 --- a/src/wayland/dataoffer_interface.h +++ b/src/wayland/dataoffer_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_OFFER_INTERFACE_H -#define WAYLAND_SERVER_DATA_OFFER_INTERFACE_H +#pragma once #include @@ -71,5 +70,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::DataOfferInterface*) - -#endif diff --git a/src/wayland/datasource_interface.h b/src/wayland/datasource_interface.h index 4f4d98ea99..0d7101d442 100644 --- a/src/wayland/datasource_interface.h +++ b/src/wayland/datasource_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DATA_SOURCE_INTERFACE_H -#define WAYLAND_SERVER_DATA_SOURCE_INTERFACE_H +#pragma once #include "abstract_data_source.h" @@ -62,5 +61,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::DataSourceInterface*) - -#endif diff --git a/src/wayland/display.h b/src/wayland/display.h index 2bb0b0e022..d3619216bc 100644 --- a/src/wayland/display.h +++ b/src/wayland/display.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DISPLAY_H -#define WAYLAND_SERVER_DISPLAY_H +#pragma once #include #include @@ -157,5 +156,3 @@ private: }; } - -#endif diff --git a/src/wayland/dpms_interface.h b/src/wayland/dpms_interface.h index f39eb89caf..c9fcc4f00f 100644 --- a/src/wayland/dpms_interface.h +++ b/src/wayland/dpms_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DPMS_INTERFACE_H -#define WAYLAND_SERVER_DPMS_INTERFACE_H +#pragma once #include @@ -62,5 +61,3 @@ private: }; } - -#endif diff --git a/src/wayland/dpms_interface_p.h b/src/wayland/dpms_interface_p.h index 127a0c74e9..27fb72c55f 100644 --- a/src/wayland/dpms_interface_p.h +++ b/src/wayland/dpms_interface_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_DPMS_INTERFACE_P_H -#define WAYLAND_SERVER_DPMS_INTERFACE_P_H +#pragma once #include "dpms_interface.h" @@ -47,5 +46,3 @@ protected: }; } - -#endif diff --git a/src/wayland/fakeinput_interface.h b/src/wayland/fakeinput_interface.h index 083a342371..e60d1ec808 100644 --- a/src/wayland/fakeinput_interface.h +++ b/src/wayland/fakeinput_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_FAKEINPUT_INTERFACE_H -#define KWAYLAND_SERVER_FAKEINPUT_INTERFACE_H +#pragma once #include #include @@ -172,5 +171,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::FakeInputDevice*) - -#endif diff --git a/src/wayland/filtered_display.h b/src/wayland/filtered_display.h index 506b93cd46..6c348240d3 100644 --- a/src/wayland/filtered_display.h +++ b/src/wayland/filtered_display.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_FILTERED_DISPLAY_H -#define KWAYLAND_SERVER_FILTERED_DISPLAY_H +#pragma once #include "global.h" #include "display.h" @@ -44,5 +43,3 @@ private: }; } - -#endif diff --git a/src/wayland/idle_interface.h b/src/wayland/idle_interface.h index 08db529144..93c2bac150 100644 --- a/src/wayland/idle_interface.h +++ b/src/wayland/idle_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_IDLE_INTERFACE_H -#define KWAYLAND_SERVER_IDLE_INTERFACE_H +#pragma once #include @@ -106,5 +105,3 @@ private: }; } - -#endif diff --git a/src/wayland/idle_interface_p.h b/src/wayland/idle_interface_p.h index e742f0ffb5..91f2c515c2 100644 --- a/src/wayland/idle_interface_p.h +++ b/src/wayland/idle_interface_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_IDLE_INTERFACE_P_H -#define KWAYLAND_SERVER_IDLE_INTERFACE_P_H +#pragma once #include "idle_interface.h" @@ -55,5 +54,3 @@ protected: }; } - -#endif diff --git a/src/wayland/idleinhibit_v1_interface.h b/src/wayland/idleinhibit_v1_interface.h index f660ff4119..370150e713 100644 --- a/src/wayland/idleinhibit_v1_interface.h +++ b/src/wayland/idleinhibit_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_H -#define KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_H +#pragma once #include @@ -38,5 +37,3 @@ private: }; } - -#endif diff --git a/src/wayland/idleinhibit_v1_interface_p.h b/src/wayland/idleinhibit_v1_interface_p.h index 1343237d14..b8834ad5e9 100644 --- a/src/wayland/idleinhibit_v1_interface_p.h +++ b/src/wayland/idleinhibit_v1_interface_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_P_H -#define KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_P_H +#pragma once #include "idleinhibit_v1_interface.h" @@ -39,5 +38,3 @@ protected: } -#endif - diff --git a/src/wayland/inputmethod_v1_interface.h b/src/wayland/inputmethod_v1_interface.h index 58c5e53482..1782aea235 100644 --- a/src/wayland/inputmethod_v1_interface.h +++ b/src/wayland/inputmethod_v1_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_INPUTMETHOD_INTERFACE_H -#define WAYLAND_SERVER_INPUTMETHOD_INTERFACE_H +#pragma once #include @@ -142,5 +141,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::InputMethodV1Interface *) - -#endif diff --git a/src/wayland/keyboard_interface.h b/src/wayland/keyboard_interface.h index 59d24adac2..a8284a7c29 100644 --- a/src/wayland/keyboard_interface.h +++ b/src/wayland/keyboard_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_KEYBOARD_INTERFACE_H -#define WAYLAND_SERVER_KEYBOARD_INTERFACE_H +#pragma once #include @@ -72,5 +71,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::KeyboardInterface*) - -#endif diff --git a/src/wayland/keyboard_interface_p.h b/src/wayland/keyboard_interface_p.h index 22298ca256..a2e0ca536c 100644 --- a/src/wayland/keyboard_interface_p.h +++ b/src/wayland/keyboard_interface_p.h @@ -3,8 +3,8 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_KEYBOARD_INTERFACE_P_H -#define WAYLAND_SERVER_KEYBOARD_INTERFACE_P_H +#pragma once + #include "keyboard_interface.h" #include @@ -69,5 +69,3 @@ protected: }; } - -#endif diff --git a/src/wayland/keyboard_shortcuts_inhibit_v1_interface.h b/src/wayland/keyboard_shortcuts_inhibit_v1_interface.h index bf31e1fe04..6da48cdb1a 100644 --- a/src/wayland/keyboard_shortcuts_inhibit_v1_interface.h +++ b/src/wayland/keyboard_shortcuts_inhibit_v1_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_KEYBOARD_SHORTCUTS_INHIBIT_V1_INTERFACE_H -#define WAYLAND_SERVER_KEYBOARD_SHORTCUTS_INHIBIT_V1_INTERFACE_H +#pragma once #include #include @@ -76,5 +75,3 @@ private: }; } - -#endif diff --git a/src/wayland/keystate_interface.h b/src/wayland/keystate_interface.h index d04b068a37..25d8e8895b 100644 --- a/src/wayland/keystate_interface.h +++ b/src/wayland/keystate_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_KEYSTATE_INTERFACE_H -#define KWAYLAND_KEYSTATE_INTERFACE_H +#pragma once #include #include @@ -49,5 +48,3 @@ private: }; } - -#endif diff --git a/src/wayland/output_interface.h b/src/wayland/output_interface.h index f800f827a4..e9af0883e3 100644 --- a/src/wayland/output_interface.h +++ b/src/wayland/output_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_OUTPUT_INTERFACE_H -#define WAYLAND_SERVER_OUTPUT_INTERFACE_H +#pragma once #include #include @@ -165,5 +164,3 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::OutputInterface::ModeFlags) Q_DECLARE_METATYPE(KWaylandServer::OutputInterface::SubPixel) Q_DECLARE_METATYPE(KWaylandServer::OutputInterface::Transform) Q_DECLARE_METATYPE(KWaylandServer::OutputInterface::DpmsMode) - -#endif diff --git a/src/wayland/plasmashell_interface.h b/src/wayland/plasmashell_interface.h index 0f4a1ece1e..437d1ef517 100644 --- a/src/wayland/plasmashell_interface.h +++ b/src/wayland/plasmashell_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_PLASMA_SHELL_INTERFACE_H -#define WAYLAND_SERVER_PLASMA_SHELL_INTERFACE_H +#pragma once #include @@ -232,5 +231,3 @@ private: Q_DECLARE_METATYPE(KWaylandServer::PlasmaShellSurfaceInterface::Role) Q_DECLARE_METATYPE(KWaylandServer::PlasmaShellSurfaceInterface::PanelBehavior) - -#endif diff --git a/src/wayland/plasmavirtualdesktop_interface.h b/src/wayland/plasmavirtualdesktop_interface.h index f979a4a36c..7eda2c1c1a 100644 --- a/src/wayland/plasmavirtualdesktop_interface.h +++ b/src/wayland/plasmavirtualdesktop_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_PLASMAVIRTUALDESKTOP_H -#define KWAYLAND_SERVER_PLASMAVIRTUALDESKTOP_H +#pragma once #include @@ -151,5 +150,3 @@ private: }; } - -#endif diff --git a/src/wayland/plasmawindowmanagement_interface.h b/src/wayland/plasmawindowmanagement_interface.h index c2eb835cdf..a27f1a7d4a 100644 --- a/src/wayland/plasmawindowmanagement_interface.h +++ b/src/wayland/plasmawindowmanagement_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_PLASMA_WINDOW_MANAGEMENT_INTERFACE_H -#define WAYLAND_SERVER_PLASMA_WINDOW_MANAGEMENT_INTERFACE_H +#pragma once #include @@ -325,5 +324,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::PlasmaWindowManagementInterface::ShowingDesktopState) - -#endif diff --git a/src/wayland/pointer_interface.h b/src/wayland/pointer_interface.h index 74e703e129..23f3be128d 100644 --- a/src/wayland/pointer_interface.h +++ b/src/wayland/pointer_interface.h @@ -5,7 +5,6 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ - #pragma once #include diff --git a/src/wayland/pointer_interface_p.h b/src/wayland/pointer_interface_p.h index f731363508..a44116b7e2 100644 --- a/src/wayland/pointer_interface_p.h +++ b/src/wayland/pointer_interface_p.h @@ -5,8 +5,8 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_POINTER_INTERFACE_P_H -#define WAYLAND_SERVER_POINTER_INTERFACE_P_H +#pragma once + #include "pointer_interface.h" #include @@ -56,5 +56,3 @@ protected: }; } - -#endif diff --git a/src/wayland/primaryselectiondevice_v1_interface.h b/src/wayland/primaryselectiondevice_v1_interface.h index 5fb2d5d645..dbe28fba9d 100644 --- a/src/wayland/primaryselectiondevice_v1_interface.h +++ b/src/wayland/primaryselectiondevice_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_PRIMARY_SELECTION_DEVICE_INTERFACE_H -#define WAYLAND_SERVER_PRIMARY_SELECTION_DEVICE_INTERFACE_H +#pragma once #include @@ -60,5 +59,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::PrimarySelectionDeviceV1Interface*) - -#endif diff --git a/src/wayland/primaryselectiondevicemanager_v1_interface.h b/src/wayland/primaryselectiondevicemanager_v1_interface.h index 8e7b52397b..6acca1d990 100644 --- a/src/wayland/primaryselectiondevicemanager_v1_interface.h +++ b/src/wayland/primaryselectiondevicemanager_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_PRIMARY_SELECTION_DEVICE_MANAGER_INTERFACE_H -#define WAYLAND_SERVER_PRIMARY_SELECTION_DEVICE_MANAGER_INTERFACE_H +#pragma once #include @@ -39,5 +38,3 @@ private: }; } - -#endif diff --git a/src/wayland/primaryselectionoffer_v1_interface.h b/src/wayland/primaryselectionoffer_v1_interface.h index 4000e2b996..ab23197802 100644 --- a/src/wayland/primaryselectionoffer_v1_interface.h +++ b/src/wayland/primaryselectionoffer_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_PRIMARY_SELECTION_OFFER_INTERFACE_H -#define WAYLAND_SERVER_PRIMARY_SELECTION_OFFER_INTERFACE_H +#pragma once #include @@ -44,5 +43,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::PrimarySelectionOfferV1Interface*) - -#endif diff --git a/src/wayland/primaryselectionsource_v1_interface.h b/src/wayland/primaryselectionsource_v1_interface.h index 4208e6748d..89db3e78d4 100644 --- a/src/wayland/primaryselectionsource_v1_interface.h +++ b/src/wayland/primaryselectionsource_v1_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_PRIMARY_SELECTION_SOURCE_INTERFACE_H -#define WAYLAND_SERVER_PRIMARY_SELECTION_SOURCE_INTERFACE_H +#pragma once #include "abstract_data_source.h" @@ -45,5 +44,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::PrimarySelectionSourceV1Interface*) - -#endif diff --git a/src/wayland/seat_interface.h b/src/wayland/seat_interface.h index e8cd96ca75..d4483dfa92 100644 --- a/src/wayland/seat_interface.h +++ b/src/wayland/seat_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_SEAT_INTERFACE_H -#define WAYLAND_SERVER_SEAT_INTERFACE_H +#pragma once #include #include @@ -706,5 +705,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::SeatInterface*) - -#endif diff --git a/src/wayland/seat_interface_p.h b/src/wayland/seat_interface_p.h index 65f53c8f83..0899baa186 100644 --- a/src/wayland/seat_interface_p.h +++ b/src/wayland/seat_interface_p.h @@ -3,8 +3,8 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_SEAT_INTERFACE_P_H -#define WAYLAND_SERVER_SEAT_INTERFACE_P_H +#pragma once + // KWayland #include "seat_interface.h" #include "global_p.h" @@ -156,5 +156,3 @@ private: }; } - -#endif diff --git a/src/wayland/server/buffer_interface.h b/src/wayland/server/buffer_interface.h index c75e8404ea..cb2b687f2c 100644 --- a/src/wayland/server/buffer_interface.h +++ b/src/wayland/server/buffer_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_BUFFER_INTERFACE_H -#define WAYLAND_SERVER_BUFFER_INTERFACE_H +#pragma once #include #include @@ -175,5 +174,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::BufferInterface*) - -#endif diff --git a/src/wayland/server/eglstream_controller_interface.h b/src/wayland/server/eglstream_controller_interface.h index a04aaec6db..f002618118 100644 --- a/src/wayland/server/eglstream_controller_interface.h +++ b/src/wayland/server/eglstream_controller_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_EGLSTREAM_CONTROLLER_INTERFACE_H -#define WAYLAND_SERVER_EGLSTREAM_CONTROLLER_INTERFACE_H +#pragma once #include "global.h" #include "surface_interface.h" @@ -45,5 +44,3 @@ private: }; } - -#endif diff --git a/src/wayland/server/global.h b/src/wayland/server/global.h index 023ef2bc20..8c9784ae8a 100644 --- a/src/wayland/server/global.h +++ b/src/wayland/server/global.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_GLOBAL_H -#define WAYLAND_SERVER_GLOBAL_H +#pragma once #include @@ -89,5 +88,3 @@ protected: }; } - -#endif diff --git a/src/wayland/server/global_p.h b/src/wayland/server/global_p.h index 9c4ca7f4d6..58bf1b77ec 100644 --- a/src/wayland/server/global_p.h +++ b/src/wayland/server/global_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_GLOBAL_P_H -#define WAYLAND_SERVER_GLOBAL_P_H +#pragma once #include "global.h" @@ -45,5 +44,3 @@ protected: }; } - -#endif diff --git a/src/wayland/server/linuxdmabuf_v1_interface.h b/src/wayland/server/linuxdmabuf_v1_interface.h index 87089b96b2..4d95c6b254 100644 --- a/src/wayland/server/linuxdmabuf_v1_interface.h +++ b/src/wayland/server/linuxdmabuf_v1_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_LINUXDMABUF_INTERFACE_H -#define WAYLAND_SERVER_LINUXDMABUF_INTERFACE_H +#pragma once #include "global.h" #include "resource.h" @@ -160,5 +159,3 @@ private: Q_DECLARE_METATYPE(KWaylandServer::LinuxDmabufUnstableV1Interface*) Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::LinuxDmabufUnstableV1Interface::Flags) - -#endif // WAYLAND_SERVER_LINUXDMABUF_INTERFACE_H diff --git a/src/wayland/server/outputchangeset.h b/src/wayland/server/outputchangeset.h index c24aa3a29e..9d6d390564 100644 --- a/src/wayland/server/outputchangeset.h +++ b/src/wayland/server/outputchangeset.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_OUTPUT_CHANGESET_H -#define WAYLAND_SERVER_OUTPUT_CHANGESET_H +#pragma once #include @@ -93,5 +92,3 @@ private: }; } - -#endif diff --git a/src/wayland/server/outputchangeset_p.h b/src/wayland/server/outputchangeset_p.h index 4c51c12192..6f177236c3 100644 --- a/src/wayland/server/outputchangeset_p.h +++ b/src/wayland/server/outputchangeset_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_OUTPUTCHANGESET_P_H -#define KWAYLAND_SERVER_OUTPUTCHANGESET_P_H +#pragma once #include "outputchangeset.h" @@ -29,5 +28,3 @@ public: }; } - -#endif diff --git a/src/wayland/server/outputconfiguration_interface.h b/src/wayland/server/outputconfiguration_interface.h index 6f2eccee46..8619fca29a 100644 --- a/src/wayland/server/outputconfiguration_interface.h +++ b/src/wayland/server/outputconfiguration_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_OUTPUTCONFIGURATION_INTERFACE_H -#define KWAYLAND_SERVER_OUTPUTCONFIGURATION_INTERFACE_H +#pragma once #include "resource.h" #include "outputmanagement_interface.h" @@ -89,5 +88,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::OutputConfigurationInterface*) - -#endif diff --git a/src/wayland/server/outputdevice_interface.h b/src/wayland/server/outputdevice_interface.h index 89c07be94c..b9d573fde2 100644 --- a/src/wayland/server/outputdevice_interface.h +++ b/src/wayland/server/outputdevice_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_OUTPUTDEVICE_INTERFACE_H -#define WAYLAND_SERVER_OUTPUTDEVICE_INTERFACE_H +#pragma once #include #include @@ -188,5 +187,3 @@ Q_DECLARE_METATYPE(KWaylandServer::OutputDeviceInterface::Enablement) Q_DECLARE_METATYPE(KWaylandServer::OutputDeviceInterface::SubPixel) Q_DECLARE_METATYPE(KWaylandServer::OutputDeviceInterface::Transform) Q_DECLARE_METATYPE(KWaylandServer::OutputDeviceInterface::ColorCurves) - -#endif diff --git a/src/wayland/server/outputmanagement_interface.h b/src/wayland/server/outputmanagement_interface.h index a3949d3445..088145f432 100644 --- a/src/wayland/server/outputmanagement_interface.h +++ b/src/wayland/server/outputmanagement_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_OUTPUTMANAGEMENT_INTERFACE_H -#define KWAYLAND_SERVER_OUTPUTMANAGEMENT_INTERFACE_H +#pragma once #include "global.h" @@ -57,5 +56,3 @@ private: }; } - -#endif diff --git a/src/wayland/server/region_interface.h b/src/wayland/server/region_interface.h index 4a286981e1..ba299a9978 100644 --- a/src/wayland/server/region_interface.h +++ b/src/wayland/server/region_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_REGION_INTERFACE_H -#define WAYLAND_SERVER_REGION_INTERFACE_H +#pragma once #include #include @@ -59,5 +58,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::RegionInterface*) - -#endif diff --git a/src/wayland/server/resource.h b/src/wayland/server/resource.h index 920e2319ff..fb4e276617 100644 --- a/src/wayland/server/resource.h +++ b/src/wayland/server/resource.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_RESOURCE_H -#define WAYLAND_SERVER_RESOURCE_H +#pragma once #include @@ -84,5 +83,3 @@ protected: }; } - -#endif diff --git a/src/wayland/server/resource_p.h b/src/wayland/server/resource_p.h index d5b579f93c..54628529dd 100644 --- a/src/wayland/server/resource_p.h +++ b/src/wayland/server/resource_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_RESOURCE_P_H -#define WAYLAND_SERVER_RESOURCE_P_H +#pragma once #include "resource.h" #include @@ -77,5 +76,3 @@ private: }; } - -#endif diff --git a/src/wayland/server_decoration_interface.h b/src/wayland/server_decoration_interface.h index 84d06718c9..fd0ae5ce65 100644 --- a/src/wayland/server_decoration_interface.h +++ b/src/wayland/server_decoration_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_SERVER_DECORATION_INTERFACE_H -#define KWAYLAND_SERVER_SERVER_DECORATION_INTERFACE_H +#pragma once #include @@ -131,5 +130,3 @@ private: Q_DECLARE_METATYPE(KWaylandServer::ServerSideDecorationInterface*) Q_DECLARE_METATYPE(KWaylandServer::ServerSideDecorationManagerInterface::Mode) - -#endif diff --git a/src/wayland/server_decoration_palette_interface.h b/src/wayland/server_decoration_palette_interface.h index 9ecf687735..c4603da45d 100644 --- a/src/wayland/server_decoration_palette_interface.h +++ b/src/wayland/server_decoration_palette_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_DECORATION_PALETTE_INTERFACE_H -#define KWAYLAND_SERVER_DECORATION_PALETTE_INTERFACE_H +#pragma once struct wl_resource; @@ -85,5 +84,3 @@ private: }; } - -#endif diff --git a/src/wayland/shadow_interface.h b/src/wayland/shadow_interface.h index 1f86b7db72..fe67e5ea7c 100644 --- a/src/wayland/shadow_interface.h +++ b/src/wayland/shadow_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_SHADOW_INTERFACE_H -#define KWAYLAND_SERVER_SHADOW_INTERFACE_H +#pragma once #include #include @@ -60,5 +59,3 @@ private: }; } - -#endif diff --git a/src/wayland/slide_interface.h b/src/wayland/slide_interface.h index 37534aef38..24522adb88 100644 --- a/src/wayland/slide_interface.h +++ b/src/wayland/slide_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_SLIDE_INTERFACE_H -#define KWAYLAND_SERVER_SLIDE_INTERFACE_H +#pragma once #include @@ -61,8 +60,4 @@ private: QScopedPointer d; }; - - } - -#endif diff --git a/src/wayland/surface_interface.h b/src/wayland/surface_interface.h index 6de35ee634..29fd60cc6e 100644 --- a/src/wayland/surface_interface.h +++ b/src/wayland/surface_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_SURFACE_INTERFACE_H -#define WAYLAND_SERVER_SURFACE_INTERFACE_H +#pragma once #include "output_interface.h" @@ -498,5 +497,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::SurfaceInterface*) - -#endif diff --git a/src/wayland/surface_interface_p.h b/src/wayland/surface_interface_p.h index 79631c3f6c..e5dac7adce 100644 --- a/src/wayland/surface_interface_p.h +++ b/src/wayland/surface_interface_p.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef WAYLAND_SERVER_SURFACE_INTERFACE_P_H -#define WAYLAND_SERVER_SURFACE_INTERFACE_P_H +#pragma once #include "surface_interface.h" #include "utils.h" @@ -146,5 +145,3 @@ private: }; } // namespace KWaylandServer - -#endif diff --git a/src/wayland/surfacerole_p.h b/src/wayland/surfacerole_p.h index 6b1264fcdb..2ec55ea4f4 100644 --- a/src/wayland/surfacerole_p.h +++ b/src/wayland/surfacerole_p.h @@ -3,9 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ - -#ifndef KWAYLAND_SERVER_SURFACEROLE_P_H -#define KWAYLAND_SERVER_SURFACEROLE_P_H +#pragma once #include #include @@ -39,5 +37,3 @@ private: }; } - -#endif // KWAYLAND_SERVER_SURFACEROLE_P_H diff --git a/src/wayland/tablet_v2_interface.h b/src/wayland/tablet_v2_interface.h index 980d2a0044..3d51712bf0 100644 --- a/src/wayland/tablet_v2_interface.h +++ b/src/wayland/tablet_v2_interface.h @@ -3,9 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ - -#ifndef WAYLAND_SERVER_TABLET_INTERFACE_H -#define WAYLAND_SERVER_TABLET_INTERFACE_H +#pragma once #include @@ -278,5 +276,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::TabletSeatV2Interface *) - -#endif diff --git a/src/wayland/tests/touchclienttest.h b/src/wayland/tests/touchclienttest.h index 0f8b637610..50e0b578da 100644 --- a/src/wayland/tests/touchclienttest.h +++ b/src/wayland/tests/touchclienttest.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef TOUCHCLIENTTEST_H -#define TOUCHCLIENTTEST_H +#pragma once #include #include @@ -48,5 +47,3 @@ private: QSize m_currentSize; QTimer *m_timer; }; - -#endif diff --git a/src/wayland/textinput.h b/src/wayland/textinput.h index a32d94d85e..1185726e19 100644 --- a/src/wayland/textinput.h +++ b/src/wayland/textinput.h @@ -3,9 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ - -#ifndef TEXTINPUT_H_INCLUDED -#define TEXTINPUT_H_INCLUDED +#pragma once #include @@ -153,5 +151,3 @@ Q_DECLARE_METATYPE(KWaylandServer::TextInputContentHints) Q_DECLARE_OPERATORS_FOR_FLAGS(KWaylandServer::TextInputContentHints) Q_DECLARE_METATYPE(KWaylandServer::TextInputContentPurpose) Q_DECLARE_METATYPE(KWaylandServer::TextInputChangeCause) - -#endif // TEXTINPUT_H_INCLUDED diff --git a/src/wayland/textinput_v2_interface.h b/src/wayland/textinput_v2_interface.h index efdda6417a..642aeb5259 100644 --- a/src/wayland/textinput_v2_interface.h +++ b/src/wayland/textinput_v2_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_TEXTINPUT_INTERFACE_H -#define KWAYLAND_SERVER_TEXTINPUT_INTERFACE_H +#pragma once #include @@ -273,5 +272,3 @@ private: Q_DECLARE_METATYPE(KWaylandServer::TextInputV2Interface *) Q_DECLARE_METATYPE(KWaylandServer::TextInputV2Interface::UpdateReason) - -#endif diff --git a/src/wayland/textinput_v2_interface_p.h b/src/wayland/textinput_v2_interface_p.h index d6ed88511a..aa4ef799b7 100644 --- a/src/wayland/textinput_v2_interface_p.h +++ b/src/wayland/textinput_v2_interface_p.h @@ -3,8 +3,8 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_TEXTINPUT_INTERFACE_P_H -#define KWAYLAND_SERVER_TEXTINPUT_INTERFACE_P_H +#pragma once + #include "textinput_v2_interface.h" #include "clientconnection.h" @@ -78,5 +78,3 @@ protected: }; } - -#endif diff --git a/src/wayland/textinput_v3_interface.h b/src/wayland/textinput_v3_interface.h index e8216dba08..d2ede76298 100644 --- a/src/wayland/textinput_v3_interface.h +++ b/src/wayland/textinput_v3_interface.h @@ -4,8 +4,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_TEXTINPUT_V3_INTERFACE_H -#define KWAYLAND_SERVER_TEXTINPUT_V3_INTERFACE_H +#pragma once #include @@ -201,5 +200,3 @@ private: } Q_DECLARE_METATYPE(KWaylandServer::TextInputV3Interface *) - -#endif diff --git a/src/wayland/textinput_v3_interface_p.h b/src/wayland/textinput_v3_interface_p.h index 89286d1461..6c2376444e 100644 --- a/src/wayland/textinput_v3_interface_p.h +++ b/src/wayland/textinput_v3_interface_p.h @@ -3,9 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ - -#ifndef KWAYLAND_SERVER_TEXTINPUT_V3_INTERFACE_P_H -#define KWAYLAND_SERVER_TEXTINPUT_V3_INTERFACE_P_H +#pragma once #include "textinput_v3_interface.h" #include "clientconnection.h" @@ -93,5 +91,3 @@ protected: }; } - -#endif diff --git a/src/wayland/touch_interface.h b/src/wayland/touch_interface.h index b4f0b219d2..5f7d4e15a2 100644 --- a/src/wayland/touch_interface.h +++ b/src/wayland/touch_interface.h @@ -5,7 +5,6 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ - #pragma once #include diff --git a/src/wayland/xdgforeign_v2_interface.h b/src/wayland/xdgforeign_v2_interface.h index 61832a7e69..2a60bb9e79 100644 --- a/src/wayland/xdgforeign_v2_interface.h +++ b/src/wayland/xdgforeign_v2_interface.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_XDGFOREIGN_INTERFACE_H -#define KWAYLAND_SERVER_XDGFOREIGN_INTERFACE_H +#pragma once #include @@ -63,5 +62,3 @@ private: }; } - -#endif diff --git a/src/wayland/xdgforeign_v2_interface_p.h b/src/wayland/xdgforeign_v2_interface_p.h index b648b1ef70..38facfde9a 100644 --- a/src/wayland/xdgforeign_v2_interface_p.h +++ b/src/wayland/xdgforeign_v2_interface_p.h @@ -3,8 +3,7 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#ifndef KWAYLAND_SERVER_XDGFOREIGNV2_INTERFACE_P_H -#define KWAYLAND_SERVER_XDGFOREIGNV2_INTERFACE_P_H +#pragma once #include "xdgforeign_v2_interface.h" #include "surface_interface_p.h" @@ -111,5 +110,3 @@ protected: }; } - -#endif