From dec4b73618785dd00f0db318ccb1c4cf5a106de5 Mon Sep 17 00:00:00 2001 From: Muhammad Ammar Date: Sat, 25 Apr 2026 13:26:28 +0500 Subject: [PATCH] tdf#143148: Use pragma once instead of include guards Change-Id: I43a2140dab6203e58547710f2bf8530ff72d53d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204325 Tested-by: Ilmari Lauhakangas Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas --- sd/source/console/PresenterController.hxx | 5 +---- sd/source/console/PresenterNotesView.hxx | 5 +---- sfx2/source/inc/openurlhint.hxx | 5 +---- sfx2/source/inc/preview.hxx | 6 ++---- svx/inc/GalleryControl.hxx | 6 ++---- 5 files changed, 7 insertions(+), 20 deletions(-) diff --git a/sd/source/console/PresenterController.hxx b/sd/source/console/PresenterController.hxx index 5beca19b6c64..b26ef47b7ed5 100644 --- a/sd/source/console/PresenterController.hxx +++ b/sd/source/console/PresenterController.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERCONTROLLER_HXX -#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERCONTROLLER_HXX +#pragma once #include "PresenterAccessibility.hxx" #include "PresenterPaneContainer.hxx" @@ -215,6 +214,4 @@ private: } // end of namespace ::sdext::presenter -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/console/PresenterNotesView.hxx b/sd/source/console/PresenterNotesView.hxx index c558ce4d291c..6e6f1856503a 100644 --- a/sd/source/console/PresenterNotesView.hxx +++ b/sd/source/console/PresenterNotesView.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERNOTESVIEW_HXX -#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERNOTESVIEW_HXX +#pragma once #include "PresenterController.hxx" #include "PresenterToolBar.hxx" @@ -153,6 +152,4 @@ private: } // end of namespace ::sdext::presenter -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/inc/openurlhint.hxx b/sfx2/source/inc/openurlhint.hxx index abe41cd698d9..72779ff4908e 100644 --- a/sfx2/source/inc/openurlhint.hxx +++ b/sfx2/source/inc/openurlhint.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SFX2_STRINGHINT_HXX -#define INCLUDED_SFX2_STRINGHINT_HXX +#pragma once #include #include @@ -33,6 +32,4 @@ public: virtual ~SfxOpenUrlHint() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx index f01709c1b3f0..7024bcf2c337 100644 --- a/sfx2/source/inc/preview.hxx +++ b/sfx2/source/inc/preview.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_SFX2_SOURCE_INC_PREVIEW_HXX -#define INCLUDED_SFX2_SOURCE_INC_PREVIEW_HXX + +#pragma once #include @@ -36,6 +36,4 @@ public: static void ImpPaint(vcl::RenderContext& rRenderContext, GDIMetaFile* pFile); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/inc/GalleryControl.hxx b/svx/inc/GalleryControl.hxx index e62d82aa704a..3452f379678e 100644 --- a/svx/inc/GalleryControl.hxx +++ b/svx/inc/GalleryControl.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_INC_GALLERYCONTROL_HXX -#define INCLUDED_SVX_INC_GALLERYCONTROL_HXX + +#pragma once #include #include @@ -41,6 +41,4 @@ private: } // end of namespace svx::sidebar -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */