sw/qa/inc/swtestviewcallback.hxx | 5 +---- sw/qa/inc/swtiledrenderingtest.hxx | 5 +---- sw/source/ui/dialog/swdlgfact.hxx | 5 +---- sw/source/ui/fldui/flddb.hxx | 5 +---- sw/source/ui/fldui/flddinf.hxx | 5 +---- sw/source/ui/fldui/flddok.hxx | 5 +---- sw/source/ui/fldui/fldfunc.hxx | 5 +---- sw/source/ui/fldui/fldpage.hxx | 5 +---- sw/source/ui/fldui/fldref.hxx | 5 +---- sw/source/ui/fldui/fldvar.hxx | 5 +---- sw/source/ui/inc/condedit.hxx | 5 +---- sw/source/ui/inc/regionsw.hxx | 5 +---- sw/source/ui/misc/impfnote.hxx | 5 +---- sw/source/ui/uno/swdetect.hxx | 5 +---- sw/source/uibase/uiview/viewfunc.hxx | 5 +---- 15 files changed, 15 insertions(+), 60 deletions(-)
New commits: commit 72d1941dddf1d961a3d3b6e8737e1f52f1feeee6 Author: Swarnadeep Paul <[email protected]> AuthorDate: Sat Jan 24 13:05:00 2026 +0530 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Tue Jan 27 10:02:00 2026 +0100 tdf#143148 Replace #ifndef with #pragma in sw/source/uibase Change-Id: Ie9945cfe5d1ce17d55fe3103ccb4b65bd9a928e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198032 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/sw/qa/inc/swtestviewcallback.hxx b/sw/qa/inc/swtestviewcallback.hxx index 913f9910b209..06f34e7850cf 100644 --- a/sw/qa/inc/swtestviewcallback.hxx +++ b/sw/qa/inc/swtestviewcallback.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SW_QA_INC_SWTESTVIEWCALLBACK_HXX -#define INCLUDED_SW_QA_INC_SWTESTVIEWCALLBACK_HXX +#pragma once #include <boost/property_tree/ptree.hpp> @@ -67,6 +66,4 @@ public: void callbackImpl(int nType, const char* pPayload); }; -#endif // INCLUDED_SW_QA_INC_SWTESTVIEWCALLBACK_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/qa/inc/swtiledrenderingtest.hxx b/sw/qa/inc/swtiledrenderingtest.hxx index 6419a90fd206..044e633217a1 100644 --- a/sw/qa/inc/swtiledrenderingtest.hxx +++ b/sw/qa/inc/swtiledrenderingtest.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SW_QA_INC_SWTILEDRENDERINGTEST_HXX -#define INCLUDED_SW_QA_INC_SWTILEDRENDERINGTEST_HXX +#pragma once #include "swmodeltestbase.hxx" @@ -59,6 +58,4 @@ protected: TestLokCallbackWrapper m_callbackWrapper; }; -#endif // INCLUDED_SW_QA_INC_SWTILEDRENDERINGTEST_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx index 60879d516887..5f62422e3aeb 100644 --- a/sw/source/ui/dialog/swdlgfact.hxx +++ b/sw/source/ui/dialog/swdlgfact.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_UI_DIALOG_SWDLGFACT_HXX -#define INCLUDED_SW_SOURCE_UI_DIALOG_SWDLGFACT_HXX +#pragma once #include <swabstdlg.hxx> @@ -211,6 +210,4 @@ public: virtual void ExecuteMMResultEmailDialog(weld::Window* pParent) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/flddb.hxx b/sw/source/ui/fldui/flddb.hxx index aeb93d1dfafe..94b879e038a5 100644 --- a/sw/source/ui/fldui/flddb.hxx +++ b/sw/source/ui/fldui/flddb.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_UI_FLDUI_FLDDB_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDB_HXX +#pragma once #include <condedit.hxx> #include <dbtree.hxx> @@ -80,6 +79,4 @@ public: void SetWrtShell(SwWrtShell& rSh); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/flddinf.hxx b/sw/source/ui/fldui/flddinf.hxx index ffe2871a126b..fe81c13ef0cd 100644 --- a/sw/source/ui/fldui/flddinf.hxx +++ b/sw/source/ui/fldui/flddinf.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_UI_FLDUI_FLDDINF_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDINF_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <numfmtlb.hxx> @@ -66,6 +65,4 @@ public: void FillFieldSelect(weld::TreeView& rListBox); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/flddok.hxx b/sw/source/ui/fldui/flddok.hxx index 2d8d9b6828f2..8cd5c36874c1 100644 --- a/sw/source/ui/fldui/flddok.hxx +++ b/sw/source/ui/fldui/flddok.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_UI_FLDUI_FLDDOK_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDOK_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <vcl/weld/Entry.hxx> @@ -69,6 +68,4 @@ public: virtual void FillUserData() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/fldfunc.hxx b/sw/source/ui/fldui/fldfunc.hxx index f42e5e74cf7d..1037f6144517 100644 --- a/sw/source/ui/fldui/fldfunc.hxx +++ b/sw/source/ui/fldui/fldfunc.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_UI_FLDUI_FLDFUNC_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDFUNC_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <vcl/weld/Entry.hxx> @@ -88,6 +87,4 @@ public: virtual void FillUserData() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/fldpage.hxx b/sw/source/ui/fldui/fldpage.hxx index 44dc9d508a09..69c4e884f6a3 100644 --- a/sw/source/ui/fldui/fldpage.hxx +++ b/sw/source/ui/fldui/fldpage.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_UI_FLDUI_FLDPAGE_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDPAGE_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <vcl/weld/TreeView.hxx> @@ -86,6 +85,4 @@ public: virtual SwFieldGroup GetGroup() = 0; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/fldref.hxx b/sw/source/ui/fldui/fldref.hxx index 57da3e790fe8..139116ea041c 100644 --- a/sw/source/ui/fldui/fldref.hxx +++ b/sw/source/ui/fldui/fldref.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_UI_FLDUI_FLDREF_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDREF_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <vcl/weld/Entry.hxx> @@ -96,6 +95,4 @@ public: virtual void FillUserData() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/fldui/fldvar.hxx b/sw/source/ui/fldui/fldvar.hxx index 21a5f2d7b407..42bfa896c9e0 100644 --- a/sw/source/ui/fldui/fldvar.hxx +++ b/sw/source/ui/fldui/fldvar.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_UI_FLDUI_FLDVAR_HXX -#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDVAR_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <vcl/weld/Entry.hxx> @@ -82,6 +81,4 @@ public: virtual void FillUserData() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/condedit.hxx b/sw/source/ui/inc/condedit.hxx index 2df837a14db8..f2811ce4b279 100644 --- a/sw/source/ui/inc/condedit.hxx +++ b/sw/source/ui/inc/condedit.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_CONDEDIT_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_CONDEDIT_HXX +#pragma once #include <vcl/transfer.hxx> #include <vcl/weld/weld.hxx> @@ -117,6 +116,4 @@ public: bool GetDropEnable() const { return m_bEnableDrop; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/regionsw.hxx b/sw/source/ui/inc/regionsw.hxx index edd585f936eb..deac0a9a1616 100644 --- a/sw/source/ui/inc/regionsw.hxx +++ b/sw/source/ui/inc/regionsw.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_REGIONSW_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_REGIONSW_HXX +#pragma once #include <sfx2/basedlgs.hxx> #include <sfx2/tabdlg.hxx> @@ -263,6 +262,4 @@ public: virtual ~SwSectionPropertyTabDialog() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/misc/impfnote.hxx b/sw/source/ui/misc/impfnote.hxx index 8d73abe75e11..58ac76bf0fac 100644 --- a/sw/source/ui/misc/impfnote.hxx +++ b/sw/source/ui/misc/impfnote.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_UI_MISC_IMPFNOTE_HXX -#define INCLUDED_SW_SOURCE_UI_MISC_IMPFNOTE_HXX +#pragma once #include <sfx2/tabdlg.hxx> #include <vcl/weld/ComboBox.hxx> @@ -80,6 +79,4 @@ public: virtual ~SwFootNoteOptionPage() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/uno/swdetect.hxx b/sw/source/ui/uno/swdetect.hxx index dadfb9442049..111987ea56e2 100644 --- a/sw/source/ui/uno/swdetect.hxx +++ b/sw/source/ui/uno/swdetect.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_UI_UNO_SWDETECT_HXX -#define INCLUDED_SW_SOURCE_UI_UNO_SWDETECT_HXX +#pragma once #include <rtl/ustring.hxx> #include <com/sun/star/document/XExtendedFilterDetection.hpp> @@ -40,6 +39,4 @@ public: virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/uiview/viewfunc.hxx b/sw/source/uibase/uiview/viewfunc.hxx index 87e017ed2d34..854f45cdcfab 100644 --- a/sw/source/uibase/uiview/viewfunc.hxx +++ b/sw/source/uibase/uiview/viewfunc.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_UIVIEW_VIEWFUNC_HXX -#define INCLUDED_SW_SOURCE_UIBASE_UIVIEW_VIEWFUNC_HXX +#pragma once #include <vcl/outdev.hxx> @@ -45,6 +44,4 @@ void ViewResizePixel( const vcl::RenderContext &rRef, SvxRuler* pHRuler = nullptr, bool bVRulerRight = false ); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
