sw/source/uibase/inc/changedb.hxx | 5 +---- sw/source/uibase/inc/chartins.hxx | 5 +---- sw/source/uibase/inc/chldwrap.hxx | 5 +---- sw/source/uibase/inc/chrdlg.hxx | 5 +---- sw/source/uibase/inc/chrdlgmodes.hxx | 6 +----- sw/source/uibase/inc/cnttab.hxx | 5 +---- 6 files changed, 6 insertions(+), 25 deletions(-)
New commits: commit 1794b41c888a3ad42a1d55deb26db2d09953b300 Author: Aleksi Kallio <ale...@pullakahvit.fi> AuthorDate: Wed May 21 13:24:29 2025 +0300 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Wed May 21 19:53:53 2025 +0200 tdf#143148 Use #pragma once instead of include guards Change-Id: Id83d153f0f0239ad0e967a900cf8ec64d8452482 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185615 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Tested-by: Jenkins diff --git a/sw/source/uibase/inc/changedb.hxx b/sw/source/uibase/inc/changedb.hxx index 3070e83f175f..a56fdd36285f 100644 --- a/sw/source/uibase/inc/changedb.hxx +++ b/sw/source/uibase/inc/changedb.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_SW_SOURCE_UIBASE_INC_CHANGEDB_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CHANGEDB_HXX +#pragma once #include <sfx2/basedlgs.hxx> #include "dbtree.hxx" @@ -54,6 +53,4 @@ public: void UpdateFields(); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/chartins.hxx b/sw/source/uibase/inc/chartins.hxx index dcac7be0b067..f36d306dfe1c 100644 --- a/sw/source/uibase/inc/chartins.hxx +++ b/sw/source/uibase/inc/chartins.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_SW_SOURCE_UIBASE_INC_CHARTINS_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CHARTINS_HXX +#pragma once #include <tools/gen.hxx> #include <tools/link.hxx> @@ -33,6 +32,4 @@ public: SwInsertChart( const Link<css::ui::dialogs::DialogClosedEvent*,void>& rLink ); }; -#endif // INCLUDED_SW_SOURCE_UIBASE_INC_CHARTINS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/chldwrap.hxx b/sw/source/uibase/inc/chldwrap.hxx index 45323550ac12..3c5811e7d67c 100644 --- a/sw/source/uibase/inc/chldwrap.hxx +++ b/sw/source/uibase/inc/chldwrap.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_SW_SOURCE_UIBASE_INC_CHLDWRAP_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CHLDWRAP_HXX +#pragma once #include <sfx2/childwin.hxx> #include <vcl/timer.hxx> @@ -42,6 +41,4 @@ public: void SetOldDocShell(SwDocShell *pDcSh) { m_pDocSh = pDcSh; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/chrdlg.hxx b/sw/source/uibase/inc/chrdlg.hxx index 085249a2b9f2..3253725dbaaf 100644 --- a/sw/source/uibase/inc/chrdlg.hxx +++ b/sw/source/uibase/inc/chrdlg.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_SW_SOURCE_UIBASE_INC_CHRDLG_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CHRDLG_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include "chrdlgmodes.hxx" @@ -40,6 +39,4 @@ public: virtual void PageCreated(const OUString& rId, SfxTabPage &rPage) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/chrdlgmodes.hxx b/sw/source/uibase/inc/chrdlgmodes.hxx index cddb6a9c2983..27d7db66c36b 100644 --- a/sw/source/uibase/inc/chrdlgmodes.hxx +++ b/sw/source/uibase/inc/chrdlgmodes.hxx @@ -6,15 +6,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CHRDLGMODES_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CHRDLGMODES_HXX +#pragma once // DialogModes for SwCharDlg enum class SwCharDlgMode { Std, Draw, Env, Ann }; -#endif // INCLUDED_SW_SOURCE_UIBASE_INC_CHRDLGMODES_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/cnttab.hxx b/sw/source/uibase/inc/cnttab.hxx index e95cc5c62b96..5f6ef17b1fa7 100644 --- a/sw/source/uibase/inc/cnttab.hxx +++ b/sw/source/uibase/inc/cnttab.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_SW_SOURCE_UIBASE_INC_CNTTAB_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CNTTAB_HXX +#pragma once #include <sal/types.h> @@ -52,6 +51,4 @@ struct CurTOXType CurTOXType (TOXTypes t) : eType (t), nIndex (0) {}; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */