From 6d77c9edd197c20cd3aba637a7212c8e0c78dd2f Mon Sep 17 00:00:00 2001 From: Davi Gomes Date: Sat, 21 Mar 2026 21:18:08 -0300 Subject: [PATCH] Libraries: Move #pragma once above include headers The #pragma once was placed after the #include directives instead of immediately after the copyright comment, inconsistent with every other header file --- Libraries/LibGC/HeapHashTable.h | 4 ++-- Libraries/LibGfx/Font/FontVariationSettings.h | 4 ++-- Libraries/LibIPC/Concepts.h | 4 ++-- Libraries/LibWeb/CSS/FontComputer.h | 4 ++-- Libraries/LibWeb/CSS/FontFeatureData.h | 4 ++-- Libraries/LibWeb/Painting/SVGMaskable.h | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Libraries/LibGC/HeapHashTable.h b/Libraries/LibGC/HeapHashTable.h index 066ff8b70e..7a8cbd9bd4 100644 --- a/Libraries/LibGC/HeapHashTable.h +++ b/Libraries/LibGC/HeapHashTable.h @@ -4,12 +4,12 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include #include #include -#pragma once - namespace GC { template diff --git a/Libraries/LibGfx/Font/FontVariationSettings.h b/Libraries/LibGfx/Font/FontVariationSettings.h index 755812c182..643c74dea1 100644 --- a/Libraries/LibGfx/Font/FontVariationSettings.h +++ b/Libraries/LibGfx/Font/FontVariationSettings.h @@ -4,13 +4,13 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include #include #include #include -#pragma once - namespace Gfx { struct FontVariationAxis { diff --git a/Libraries/LibIPC/Concepts.h b/Libraries/LibIPC/Concepts.h index e6f6dd88e3..be2758644e 100644 --- a/Libraries/LibIPC/Concepts.h +++ b/Libraries/LibIPC/Concepts.h @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include #include #include @@ -11,8 +13,6 @@ #include #include -#pragma once - // These concepts are used to help the compiler distinguish between specializations that would be // ambiguous otherwise. For example, if the specializations for int and Vector were declared as // follows: diff --git a/Libraries/LibWeb/CSS/FontComputer.h b/Libraries/LibWeb/CSS/FontComputer.h index 367dcc7404..ee5128a50d 100644 --- a/Libraries/LibWeb/CSS/FontComputer.h +++ b/Libraries/LibWeb/CSS/FontComputer.h @@ -8,6 +8,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include #include #include @@ -18,8 +20,6 @@ #include #include -#pragma once - namespace Web::CSS { struct FontFaceKey; diff --git a/Libraries/LibWeb/CSS/FontFeatureData.h b/Libraries/LibWeb/CSS/FontFeatureData.h index 1e380ab873..24ea20b8dd 100644 --- a/Libraries/LibWeb/CSS/FontFeatureData.h +++ b/Libraries/LibWeb/CSS/FontFeatureData.h @@ -5,13 +5,13 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include #include #include #include -#pragma once - namespace Web::CSS { enum class FontFeatureValueType : u8 { diff --git a/Libraries/LibWeb/Painting/SVGMaskable.h b/Libraries/LibWeb/Painting/SVGMaskable.h index 8bab961475..6cf82a70a4 100644 --- a/Libraries/LibWeb/Painting/SVGMaskable.h +++ b/Libraries/LibWeb/Painting/SVGMaskable.h @@ -4,12 +4,12 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include #include #include -#pragma once - namespace Web::Painting { class SVGMaskable {