From f5e5ac6a4493370b8080625d56e048baafd57f2b Mon Sep 17 00:00:00 2001 From: yaswantpenapaka Date: Thu, 12 Mar 2026 23:11:16 +0530 Subject: [PATCH] tdf#143148 replace include guards with pragma once Replace include guards with pragma once in selected header files from sw/inc folder. Change-Id: Ibd0d5987121fc7e7ade0496c13fc9516625a178e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201571 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas --- sw/inc/expfld.hxx | 6 ++---- sw/inc/finalthreadmanager.hxx | 4 +--- sw/inc/fldbas.hxx | 6 ++---- sw/inc/flddat.hxx | 5 +---- sw/inc/flddropdown.hxx | 6 ++---- 5 files changed, 8 insertions(+), 19 deletions(-) diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx index e04b66435261..e62719117bc2 100644 --- a/sw/inc/expfld.hxx +++ b/sw/inc/expfld.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_SW_INC_EXPFLD_HXX -#define INCLUDED_SW_INC_EXPFLD_HXX + +#pragma once #include "swdllapi.h" #include "fldbas.hxx" @@ -424,6 +424,4 @@ public: void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; -#endif // INCLUDED_SW_INC_EXPFLD_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/finalthreadmanager.hxx b/sw/inc/finalthreadmanager.hxx index cf35dd731b47..10356b0aa140 100644 --- a/sw/inc/finalthreadmanager.hxx +++ b/sw/inc/finalthreadmanager.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_SOURCE_CORE_INC_FINALTHREADMANAGER_HXX -#define INCLUDED_SW_SOURCE_CORE_INC_FINALTHREADMANAGER_HXX +#pragma once #include #include @@ -82,6 +81,5 @@ private: bool mbRegisteredAtDesktop; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 5756dccae44b..5c4dd935d4a2 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.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_SW_INC_FLDBAS_HXX -#define INCLUDED_SW_INC_FLDBAS_HXX + +#pragma once #include #include "swdllapi.h" @@ -482,6 +482,4 @@ public: OUString GetInputOrDateTime() const; }; -#endif // INCLUDED_SW_INC_FLDBAS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/flddat.hxx b/sw/inc/flddat.hxx index f79801af968c..fb2001bc1d22 100644 --- a/sw/inc/flddat.hxx +++ b/sw/inc/flddat.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_INC_FLDDAT_HXX -#define INCLUDED_SW_INC_FLDDAT_HXX +#pragma once #include @@ -74,6 +73,4 @@ public: virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nMId ) override; }; -#endif // INCLUDED_SW_INC_FLDDAT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/flddropdown.hxx b/sw/inc/flddropdown.hxx index 5c336207219f..3a8cdc6ac867 100644 --- a/sw/inc/flddropdown.hxx +++ b/sw/inc/flddropdown.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_SW_INC_FLDDROPDOWN_HXX -#define INCLUDED_SW_INC_FLDDROPDOWN_HXX + +#pragma once #include #include "swdllapi.h" @@ -260,6 +260,4 @@ public: virtual bool PutValue(const css::uno::Any& rVal, sal_uInt16 nWhichId) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */