backends/wayland: Use #pragma once

This commit is contained in:
Vlad Zahorodnii 2022-07-14 15:57:38 +03:00
parent a56b09ab9d
commit 5bf1332df5
5 changed files with 14 additions and 25 deletions

View file

@ -7,8 +7,8 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_EGL_WAYLAND_BACKEND_H
#define KWIN_EGL_WAYLAND_BACKEND_H
#pragma once
#include "abstract_egl_backend.h"
#include "outputlayer.h"
#include "utils/damagejournal.h"
@ -116,7 +116,5 @@ private:
friend class EglWaylandTexture;
};
}
}
#endif
} // namespace Wayland
} // namespace KWin

View file

@ -6,10 +6,9 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_WAYLAND_LOGGING_H
#define KWIN_WAYLAND_LOGGING_H
#pragma once
#include <QDebug>
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KWIN_WAYLAND_BACKEND)
#endif

View file

@ -7,8 +7,7 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_SCENE_QPAINTER_WAYLAND_BACKEND_H
#define KWIN_SCENE_QPAINTER_WAYLAND_BACKEND_H
#pragma once
#include "outputlayer.h"
#include "qpainterbackend.h"
@ -96,7 +95,5 @@ private:
QMap<Output *, std::shared_ptr<WaylandQPainterOutput>> m_outputs;
};
}
}
#endif
} // namespace Wayland
} // namespace KWin

View file

@ -7,8 +7,8 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_WAYLAND_BACKEND_H
#define KWIN_WAYLAND_BACKEND_H
#pragma once
#include <config-kwin.h>
// KWin
#include "inputbackend.h"
@ -387,5 +387,3 @@ inline KWayland::Client::ShmPool *WaylandBackend::shmPool()
} // namespace Wayland
} // namespace KWin
#endif // KWIN_WAYLAND_BACKEND_H

View file

@ -6,8 +6,7 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_WAYLAND_OUTPUT_H
#define KWIN_WAYLAND_OUTPUT_H
#pragma once
#include "output.h"
@ -112,7 +111,5 @@ private:
bool m_hasBeenConfigured = false;
};
}
}
#endif
} // namespace Wayland
} // namespace KWin