diff --git a/src/backends/drm/drm_backend.h b/src/backends/drm/drm_backend.h index bf42bf6a61..1143b354d5 100644 --- a/src/backends/drm/drm_backend.h +++ b/src/backends/drm/drm_backend.h @@ -6,8 +6,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef KWIN_DRM_BACKEND_H -#define KWIN_DRM_BACKEND_H +#pragma once #include "core/platform.h" #include "dpmsinputeventfilter.h" @@ -113,5 +112,3 @@ private: }; } - -#endif diff --git a/src/backends/drm/drm_crtc.h b/src/backends/drm/drm_crtc.h index 9a921af484..1750f52f5d 100644 --- a/src/backends/drm/drm_crtc.h +++ b/src/backends/drm/drm_crtc.h @@ -6,8 +6,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef KWIN_drm_crtc_H -#define KWIN_drm_crtc_H +#pragma once #include "drm_object.h" @@ -64,5 +63,3 @@ private: }; } - -#endif diff --git a/src/backends/drm/drm_gpu.h b/src/backends/drm/drm_gpu.h index 302b84065c..0fd7fbef7e 100644 --- a/src/backends/drm/drm_gpu.h +++ b/src/backends/drm/drm_gpu.h @@ -6,9 +6,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ - -#ifndef DRM_GPU_H -#define DRM_GPU_H +#pragma once #include "drm_pipeline.h" @@ -137,5 +135,3 @@ private: }; } - -#endif // DRM_GPU_H diff --git a/src/backends/drm/drm_logging.h b/src/backends/drm/drm_logging.h index 5af0b77e01..f2f395a4c2 100644 --- a/src/backends/drm/drm_logging.h +++ b/src/backends/drm/drm_logging.h @@ -6,10 +6,8 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef KWIN_DRM_LOGGING_H -#define KWIN_DRM_LOGGING_H +#pragma once #include #include Q_DECLARE_LOGGING_CATEGORY(KWIN_DRM) -#endif diff --git a/src/backends/drm/drm_output.h b/src/backends/drm/drm_output.h index 9101f0e3c9..bd67ecd1d4 100644 --- a/src/backends/drm/drm_output.h +++ b/src/backends/drm/drm_output.h @@ -6,8 +6,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef KWIN_DRM_OUTPUT_H -#define KWIN_DRM_OUTPUT_H +#pragma once #include "drm_abstract_output.h" #include "drm_object.h" @@ -92,5 +91,3 @@ private: } Q_DECLARE_METATYPE(KWin::DrmOutput *) - -#endif diff --git a/src/backends/drm/drm_pointer.h b/src/backends/drm/drm_pointer.h index 650085445f..b58403a245 100644 --- a/src/backends/drm/drm_pointer.h +++ b/src/backends/drm/drm_pointer.h @@ -7,8 +7,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef KWIN_DRM_POINTER_H -#define KWIN_DRM_POINTER_H +#pragma once #include #include @@ -149,5 +148,3 @@ struct DrmDeleter template using DrmUniquePtr = std::unique_ptr>; } - -#endif