From 49daa23d818230e80ee8f22034eef51f67eeb621 Mon Sep 17 00:00:00 2001 From: "RHUSHYA.K.C" Date: Mon, 23 Feb 2026 10:58:02 +0530 Subject: [PATCH] tdf#143148 Use #pragma once instead of include guards in svx/source/inc Replace old #ifndef/#define/#endif include guards with #pragma once in the following svx internal headers: - clonelist.hxx - delayedevent.hxx - ShapesUtil.hxx - fmcontrollayout.hxx - fmdocumentclassification.hxx Change-Id: I7a3b2c9d4e5f6a1b8c0d2e3f4a5b6c7d8e9f0a1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200002 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas --- svx/source/inc/ShapesUtil.hxx | 7 +++---- svx/source/inc/clonelist.hxx | 5 +---- svx/source/inc/delayedevent.hxx | 6 +----- svx/source/inc/fmcontrollayout.hxx | 6 +----- svx/source/inc/fmdocumentclassification.hxx | 6 +----- 5 files changed, 7 insertions(+), 23 deletions(-) diff --git a/svx/source/inc/ShapesUtil.hxx b/svx/source/inc/ShapesUtil.hxx index 72d6e63dc731..a9c84d52c517 100644 --- a/svx/source/inc/ShapesUtil.hxx +++ b/svx/source/inc/ShapesUtil.hxx @@ -16,8 +16,8 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SOURCE_INC_SHAPESUTIL_HXX -#define INCLUDED_SVX_SOURCE_INC_SHAPESUTIL_HXX +#pragma once + #include #include @@ -35,5 +35,4 @@ public: } -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/inc/clonelist.hxx b/svx/source/inc/clonelist.hxx index 5ed3e4d8c127..a99e86a94dd5 100644 --- a/svx/source/inc/clonelist.hxx +++ b/svx/source/inc/clonelist.hxx @@ -16,8 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SOURCE_INC_CLONELIST_HXX -#define INCLUDED_SVX_SOURCE_INC_CLONELIST_HXX +#pragma once #include @@ -42,6 +41,4 @@ public: void CopyConnections() const; }; -#endif // INCLUDED_SVX_SOURCE_INC_CLONELIST_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/inc/delayedevent.hxx b/svx/source/inc/delayedevent.hxx index 4f7925c94b1d..c85aeee6ab07 100644 --- a/svx/source/inc/delayedevent.hxx +++ b/svx/source/inc/delayedevent.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SOURCE_INC_DELAYEDEVENT_HXX -#define INCLUDED_SVX_SOURCE_INC_DELAYEDEVENT_HXX +#pragma once #include @@ -75,7 +74,4 @@ namespace svxform } - -#endif // INCLUDED_SVX_SOURCE_INC_DELAYEDEVENT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/inc/fmcontrollayout.hxx b/svx/source/inc/fmcontrollayout.hxx index f2494d83ef14..c296eed8973f 100644 --- a/svx/source/inc/fmcontrollayout.hxx +++ b/svx/source/inc/fmcontrollayout.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SOURCE_INC_FMCONTROLLAYOUT_HXX -#define INCLUDED_SVX_SOURCE_INC_FMCONTROLLAYOUT_HXX +#pragma once #include @@ -56,7 +55,4 @@ namespace svxform::ControlLayouter } - -#endif // INCLUDED_SVX_SOURCE_INC_FMCONTROLLAYOUT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/inc/fmdocumentclassification.hxx b/svx/source/inc/fmdocumentclassification.hxx index e5052334811e..a06554d99c41 100644 --- a/svx/source/inc/fmdocumentclassification.hxx +++ b/svx/source/inc/fmdocumentclassification.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SOURCE_INC_FMDOCUMENTCLASSIFICATION_HXX -#define INCLUDED_SVX_SOURCE_INC_FMDOCUMENTCLASSIFICATION_HXX +#pragma once #include @@ -65,7 +64,4 @@ namespace svxform } - -#endif // INCLUDED_SVX_SOURCE_INC_FMDOCUMENTCLASSIFICATION_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */