diff options
author | Keldin Maldonado (KNM) <kemaldonado@csumb.edu> | 2024-01-28 21:12:54 -0800 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-01-29 10:30:01 +0100 |
commit | 405e3f8815d9117d3f6d93ac4d0031e308a284f0 (patch) | |
tree | 9e2b84faface3940ea83120112d0dfdaa3c24436 /include/sfx2 | |
parent | 593124f6ef384ce1a1cbc27dd7a43ffa42a50587 (diff) |
tdf#143148 use pragma once instead of include guards
Change-Id: I42c39d991d243191f410ebb8f91940d5922a6fc5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162678
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/linkmgr.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/linksrc.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/lokcomponenthelpers.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/mailmodelapi.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/mieclip.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/module.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/msg.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/new.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/objface.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/opengrf.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/passwd.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/printopt.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/sfxhtml.hxx | 6 | ||||
-rw-r--r-- | include/sfx2/sfxuno.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/viewfac.hxx | 5 |
15 files changed, 15 insertions, 60 deletions
diff --git a/include/sfx2/linkmgr.hxx b/include/sfx2/linkmgr.hxx index dddd8a54e288..af6be44f58b1 100644 --- a/include/sfx2/linkmgr.hxx +++ b/include/sfx2/linkmgr.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_SFX2_LINKMGR_HXX -#define INCLUDED_SFX2_LINKMGR_HXX +#pragma once #include <rtl/ustring.hxx> #include <sal/config.h> @@ -182,6 +181,4 @@ SFX2_DLLPUBLIC void MakeLnkName( OUString& rName, } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/linksrc.hxx b/include/sfx2/linksrc.hxx index bac48b18589e..7fc3eaf42415 100644 --- a/include/sfx2/linksrc.hxx +++ b/include/sfx2/linksrc.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_SFX2_LINKSRC_HXX -#define INCLUDED_SFX2_LINKSRC_HXX +#pragma once #include <sal/config.h> #include <sfx2/dllapi.h> @@ -114,6 +113,5 @@ public: typedef tools::SvRef<SvLinkSource> SvLinkSourceRef; } -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/lokcomponenthelpers.hxx b/include/sfx2/lokcomponenthelpers.hxx index c76067bc1330..6a8c05fcfd70 100644 --- a/include/sfx2/lokcomponenthelpers.hxx +++ b/include/sfx2/lokcomponenthelpers.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SFX2_LOKCHARTHELPER_HXX -#define INCLUDED_SFX2_LOKCHARTHELPER_HXX +#pragma once #include <sfx2/dllapi.h> #include <tools/gen.hxx> @@ -94,6 +93,4 @@ private: VclPtr<vcl::Window> mpWidgetWindow; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/mailmodelapi.hxx b/include/sfx2/mailmodelapi.hxx index 47d5b408659f..78438ff22483 100644 --- a/include/sfx2/mailmodelapi.hxx +++ b/include/sfx2/mailmodelapi.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_SFX2_MAILMODELAPI_HXX -#define INCLUDED_SFX2_MAILMODELAPI_HXX +#pragma once #include <com/sun/star/uno/Reference.hxx> #include <rtl/ustring.hxx> @@ -99,6 +98,4 @@ public: bool CreateFromAddress_Impl( OUString& rFrom ); -#endif // INCLUDED_SFX2_MAILMODELAPI_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/mieclip.hxx b/include/sfx2/mieclip.hxx index bc2a431b3a24..4d1256ba6da2 100644 --- a/include/sfx2/mieclip.hxx +++ b/include/sfx2/mieclip.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SFX2_MIECLIP_HXX -#define INCLUDED_SFX2_MIECLIP_HXX +#pragma once #include <memory> #include <rtl/ustring.hxx> @@ -38,6 +37,4 @@ public: SvStream* IsValid(SvStream&); }; -#endif // INCLUDED_SFX2_MIECLIP_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/module.hxx b/include/sfx2/module.hxx index 099222c1aa3a..38f136ec6def 100644 --- a/include/sfx2/module.hxx +++ b/include/sfx2/module.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_SFX2_MODULE_HXX -#define INCLUDED_SFX2_MODULE_HXX +#pragma once #include <memory> #include <optional> @@ -98,6 +97,4 @@ public: SAL_DLLPRIVATE SfxChildWinFactory* GetChildWinFactoryById(sal_uInt16 nId) const; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx index c8d343b04bcf..4d6f1a060e50 100644 --- a/include/sfx2/msg.hxx +++ b/include/sfx2/msg.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_SFX2_MSG_HXX -#define INCLUDED_SFX2_MSG_HXX +#pragma once #include <sfx2/shell.hxx> #include <rtl/ustring.hxx> @@ -278,6 +277,4 @@ inline SfxGroupId SfxSlot::GetGroupId() const } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/new.hxx b/include/sfx2/new.hxx index 8cb2bd9b4ea4..f76bb8ebab05 100644 --- a/include/sfx2/new.hxx +++ b/include/sfx2/new.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_SFX2_NEW_HXX -#define INCLUDED_SFX2_NEW_HXX +#pragma once #include <memory> #include <sal/config.h> @@ -103,6 +102,4 @@ public: void SetTemplateFlags(SfxTemplateFlags nSet); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx index fadf510ca997..d537069ca0f3 100644 --- a/include/sfx2/objface.hxx +++ b/include/sfx2/objface.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_SFX2_OBJFACE_HXX -#define INCLUDED_SFX2_OBJFACE_HXX +#pragma once #include <memory> #include <rtl/ustring.hxx> @@ -116,6 +115,4 @@ inline sal_uInt16 SfxInterface::Count() const return nCount; } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/opengrf.hxx b/include/sfx2/opengrf.hxx index c23e10989bb0..4546fbabc726 100644 --- a/include/sfx2/opengrf.hxx +++ b/include/sfx2/opengrf.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_SFX2_OPENGRF_HXX -#define INCLUDED_SFX2_OPENGRF_HXX +#pragma once #include <memory> #include <sfx2/dllapi.h> @@ -67,6 +66,4 @@ private: const std::unique_ptr< SvxOpenGrf_Impl > mpImpl; }; -#endif // _SVX_OPENGRF_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/passwd.hxx b/include/sfx2/passwd.hxx index 3ddffed196d0..602e8d122f05 100644 --- a/include/sfx2/passwd.hxx +++ b/include/sfx2/passwd.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_SFX2_PASSWD_HXX -#define INCLUDED_SFX2_PASSWD_HXX +#pragma once #include <sal/config.h> #include <sfx2/dllapi.h> @@ -136,6 +135,4 @@ public: ~SfxPasswordDialog(); }; -#endif // INCLUDED_SFX2_PASSWD_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/printopt.hxx b/include/sfx2/printopt.hxx index e01991dad347..ee105f86c730 100644 --- a/include/sfx2/printopt.hxx +++ b/include/sfx2/printopt.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SFX2_PRINTOPT_HXX -#define INCLUDED_SFX2_PRINTOPT_HXX +#pragma once #include <sal/config.h> #include <sfx2/dllapi.h> @@ -94,6 +93,4 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*); }; -#endif // INCLUDED_SFX2_PRINTOPT_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/sfxhtml.hxx b/include/sfx2/sfxhtml.hxx index 9f5a03f5b250..418501c8e65d 100644 --- a/include/sfx2/sfxhtml.hxx +++ b/include/sfx2/sfxhtml.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SFX2_SFXHTML_HXX -#define INCLUDED_SFX2_SFXHTML_HXX +#pragma once #include <sal/config.h> #include <sfx2/dllapi.h> @@ -107,7 +106,4 @@ inline bool SfxHTMLParser::ParseAreaOptions(ImageMap * pImageMap, std::u16string nEventMouseOver, nEventMouseOut ); } - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/sfxuno.hxx b/include/sfx2/sfxuno.hxx index 6c6253f37f76..22c7e53666f3 100644 --- a/include/sfx2/sfxuno.hxx +++ b/include/sfx2/sfxuno.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SFX2_SFXUNO_HXX -#define INCLUDED_SFX2_SFXUNO_HXX +#pragma once #include <sal/config.h> #include <sfx2/dllapi.h> @@ -45,6 +44,4 @@ bool GetEncryptionData_Impl( const SfxItemSet* pSet, css::uno::Sequence< css::be typedef sal_Int32 FrameSearchFlags; -#endif // INCLUDED_SFX2_SFXUNO_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/viewfac.hxx b/include/sfx2/viewfac.hxx index c09791216f0e..325cb85799d1 100644 --- a/include/sfx2/viewfac.hxx +++ b/include/sfx2/viewfac.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_SFX2_VIEWFAC_HXX -#define INCLUDED_SFX2_VIEWFAC_HXX +#pragma once #include <rtl/ustring.hxx> #include <sal/config.h> @@ -55,6 +54,4 @@ private: const OUString m_sViewName; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |