include/svx/ParseContext.hxx | 6 ++---- include/svx/ShapeTypeHandler.hxx | 5 +---- include/svx/SmartTagItem.hxx | 6 ++---- include/svx/SmartTagMgr.hxx | 5 +---- include/svx/SpellDialogChildWindow.hxx | 5 +---- include/svx/SvxColorChildWindow.hxx | 6 ++---- include/svx/SvxColorValueSet.hxx | 6 ++---- include/svx/SvxNumOptionsTabPageHelper.hxx | 4 +--- include/svx/SvxPresetListBox.hxx | 5 +---- include/svx/SvxShapeTypes.hxx | 5 +---- 10 files changed, 14 insertions(+), 39 deletions(-)
New commits: commit 760686f8810b1a2a742b3a51063e12fb51b0323b Author: Usman Akinyemi <usmanakinyemi...@gmail.com> AuthorDate: Thu Oct 3 09:28:10 2024 +0000 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Thu Oct 3 13:49:50 2024 +0200 tdf#143148 Use pragma once instead of include guards in svx directory Change-Id: I1b26987848f0a7772a52fc07a811abd7098e0793 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174419 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/include/svx/ParseContext.hxx b/include/svx/ParseContext.hxx index bbd8d312141b..543d74737843 100644 --- a/include/svx/ParseContext.hxx +++ b/include/svx/ParseContext.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_PARSECONTEXT_HXX -#define INCLUDED_SVX_PARSECONTEXT_HXX + +#pragma once #include <config_options.h> #include <com/sun/star/lang/Locale.hpp> @@ -80,7 +80,5 @@ namespace svxform const OSystemParseContext* getParseContext() const; }; } -#endif // INCLUDED_SVX_PARSECONTEXT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/ShapeTypeHandler.hxx b/include/svx/ShapeTypeHandler.hxx index 065e96bee5f0..750adbfedeb0 100644 --- a/include/svx/ShapeTypeHandler.hxx +++ b/include/svx/ShapeTypeHandler.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SHAPETYPEHANDLER_HXX -#define INCLUDED_SVX_SHAPETYPEHANDLER_HXX +#pragma once #include <svx/svxdllapi.h> @@ -195,6 +194,4 @@ private: } // end of namespace accessible -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SmartTagItem.hxx b/include/svx/SmartTagItem.hxx index d5bef53ebc7d..c68847d4ca57 100644 --- a/include/svx/SmartTagItem.hxx +++ b/include/svx/SmartTagItem.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_SMARTTAGITEM_HXX -#define INCLUDED_SVX_SMARTTAGITEM_HXX + +#pragma once #include <svl/poolitem.hxx> #include <com/sun/star/uno/Reference.hxx> @@ -76,7 +76,5 @@ public: const OUString& GetRangeText() const { return maRangeText; } }; -#endif // INCLUDED_SVX_SMARTTAGITEM_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SmartTagMgr.hxx b/include/svx/SmartTagMgr.hxx index dc8f8f474831..6ee235cb7a95 100644 --- a/include/svx/SmartTagMgr.hxx +++ b/include/svx/SmartTagMgr.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SMARTTAGMGR_HXX -#define INCLUDED_SVX_SMARTTAGMGR_HXX +#pragma once #include <cppuhelper/implbase.hxx> #include <com/sun/star/uno/Reference.hxx> @@ -227,6 +226,4 @@ public: virtual void SAL_CALL changesOccurred( const css::util::ChangesEvent& Event ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SpellDialogChildWindow.hxx b/include/svx/SpellDialogChildWindow.hxx index 21ebd227c176..0e6ed66616b0 100644 --- a/include/svx/SpellDialogChildWindow.hxx +++ b/include/svx/SpellDialogChildWindow.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SPELLDIALOGCHILDWINDOW_HXX -#define INCLUDED_SVX_SPELLDIALOGCHILDWINDOW_HXX +#pragma once #include <sfx2/childwin.hxx> #include <editeng/SpellPortions.hxx> @@ -110,6 +109,4 @@ protected: } // end of namespace ::svx -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SvxColorChildWindow.hxx b/include/svx/SvxColorChildWindow.hxx index 07b44a08fa2f..e76e2fe0f9ad 100644 --- a/include/svx/SvxColorChildWindow.hxx +++ b/include/svx/SvxColorChildWindow.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_SVXCOLORCHILDWINDOW_HXX -#define INCLUDED_SVX_SVXCOLORCHILDWINDOW_HXX + +#pragma once #include <sfx2/childwin.hxx> #include <svx/svxdllapi.h> @@ -35,6 +35,4 @@ class SVX_DLLPUBLIC SvxColorChildWindow final : public SfxChildWindow }; -#endif // INCLUDED_SVX_SVXCOLORCHILDWINDOW_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx index 1037734a2121..011e1c6c4811 100644 --- a/include/svx/SvxColorValueSet.hxx +++ b/include/svx/SvxColorValueSet.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_SVXCOLORVALUESET_HXX -#define INCLUDED_SVX_SVXCOLORVALUESET_HXX + +#pragma once #include <svtools/valueset.hxx> #include <svx/svxdllapi.h> @@ -46,6 +46,4 @@ public: virtual FactoryFunction GetUITestFactory() const override; }; -#endif // INCLUDED_SVX_SVXCOLORVALUESET_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SvxNumOptionsTabPageHelper.hxx b/include/svx/SvxNumOptionsTabPageHelper.hxx index 98766254dce2..627eb9c750c8 100644 --- a/include/svx/SvxNumOptionsTabPageHelper.hxx +++ b/include/svx/SvxNumOptionsTabPageHelper.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SVXNUMOPTIONSTABPAGEHELPER_HXX -#define INCLUDED_SVX_SVXNUMOPTIONSTABPAGEHELPER_HXX +#pragma once #include <com/sun/star/text/XDefaultNumberingProvider.hpp> #include <vcl/weld.hxx> @@ -46,5 +45,4 @@ public: static void GetI18nNumbering(weld::ComboBox& rFmtLB, sal_uInt16 nDoNotRemove); }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SvxPresetListBox.hxx b/include/svx/SvxPresetListBox.hxx index 027a9248e687..e5733097adcf 100644 --- a/include/svx/SvxPresetListBox.hxx +++ b/include/svx/SvxPresetListBox.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SVXPRESETLISTBOX_HXX -#define INCLUDED_SVX_SVXPRESETLISTBOX_HXX +#pragma once #include <svtools/valueset.hxx> #include <svx/xtable.hxx> @@ -61,6 +60,4 @@ public: void DrawLayout(); }; -#endif // INCLUDED_SVX_SVXPRESETLISTBOX_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/SvxShapeTypes.hxx b/include/svx/SvxShapeTypes.hxx index 84429198b3d3..36aa84c3eaeb 100644 --- a/include/svx/SvxShapeTypes.hxx +++ b/include/svx/SvxShapeTypes.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_SVXSHAPETYPES_HXX -#define INCLUDED_SVX_SVXSHAPETYPES_HXX +#pragma once namespace accessibility { @@ -67,6 +66,4 @@ enum SvxShapeTypes } // end of namespace accessibility -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */