salhelper/test/dynamicloader/samplelib.hxx | 5 +---- salhelper/test/rtti/samplelibrtti.hxx | 5 +---- sax/inc/xml2utf.hxx | 5 +---- sax/source/tools/CachedOutputStream.hxx | 5 +---- sax/source/tools/fastserializer.hxx | 5 +---- sax/test/sax/factory.hxx | 5 +---- 6 files changed, 6 insertions(+), 24 deletions(-)
New commits: commit 83a030d30510d6851819c6d9e379cff934d735d8 Author: Yui Nguyen <[email protected]> AuthorDate: Sat Nov 8 15:06:35 2025 -0800 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Sun Nov 9 11:15:13 2025 +0100 tdf#143148: Use pragma once instead of include guards Change-Id: I97524116acf345112eed477b594a9caefb635157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193636 Reviewed-by: Ilmari Lauhakangas <[email protected]> Tested-by: Jenkins diff --git a/salhelper/test/dynamicloader/samplelib.hxx b/salhelper/test/dynamicloader/samplelib.hxx index c254470fbbb6..1b591d031594 100644 --- a/salhelper/test/dynamicloader/samplelib.hxx +++ b/salhelper/test/dynamicloader/samplelib.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SALHELPER_TEST_DYNAMICLOADER_SAMPLELIB_HXX -#define INCLUDED_SALHELPER_TEST_DYNAMICLOADER_SAMPLELIB_HXX +#pragma once #include <sal/types.h> @@ -35,6 +34,4 @@ typedef SampleLib_Api* (*InitSampleLib_Api)(void); sal_Int32 SAL_CALL funcA(sal_Int32 a); double SAL_CALL funcB(double a); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/salhelper/test/rtti/samplelibrtti.hxx b/salhelper/test/rtti/samplelibrtti.hxx index b6bbe62224eb..88063ec0ad10 100644 --- a/salhelper/test/rtti/samplelibrtti.hxx +++ b/salhelper/test/rtti/samplelibrtti.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SALHELPER_TEST_RTTI_SAMPLELIBRTTI_HXX -#define INCLUDED_SALHELPER_TEST_RTTI_SAMPLELIBRTTI_HXX +#pragma once class MyClassA { @@ -40,6 +39,4 @@ protected: virtual void funcC(); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sax/inc/xml2utf.hxx b/sax/inc/xml2utf.hxx index ead6ac114362..521742d48bec 100644 --- a/sax/inc/xml2utf.hxx +++ b/sax/inc/xml2utf.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SAX_INC_XML2UTF_HXX -#define INCLUDED_SAX_INC_XML2UTF_HXX +#pragma once #include <sal/config.h> @@ -124,6 +123,4 @@ private: }; } -#endif // INCLUDED_SAX_INC_XML2UTF_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sax/source/tools/CachedOutputStream.hxx b/sax/source/tools/CachedOutputStream.hxx index 77e21b1d417f..f2cb58bec335 100644 --- a/sax/source/tools/CachedOutputStream.hxx +++ b/sax/source/tools/CachedOutputStream.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SAX_SOURCE_TOOLS_CACHEDOUTPUTSTREAM_HXX -#define INCLUDED_SAX_SOURCE_TOOLS_CACHEDOUTPUTSTREAM_HXX +#pragma once #include <sal/types.h> #include <rtl/byteseq.hxx> @@ -116,6 +115,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sax/source/tools/fastserializer.hxx b/sax/source/tools/fastserializer.hxx index 55d718ba4c51..6e0996f7d562 100644 --- a/sax/source/tools/fastserializer.hxx +++ b/sax/source/tools/fastserializer.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SAX_SOURCE_TOOLS_FASTSERIALIZER_HXX -#define INCLUDED_SAX_SOURCE_TOOLS_FASTSERIALIZER_HXX +#pragma once #include <com/sun/star/xml/sax/XFastTokenHandler.hpp> #include <com/sun/star/io/XOutputStream.hpp> @@ -253,6 +252,4 @@ private: } // namespace sax_fastparser -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sax/test/sax/factory.hxx b/sax/test/sax/factory.hxx index 688691c9cd35..fa939ee3b174 100644 --- a/sax/test/sax/factory.hxx +++ b/sax/test/sax/factory.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SAX_TEST_SAX_FACTORY_HXX -#define INCLUDED_SAX_TEST_SAX_FACTORY_HXX +#pragma once #include <rtl/strbuf.hxx> @@ -75,6 +74,4 @@ Sequence<OUString> OSaxWriterTest_getSupportedServiceNames( ) throw(); }\ ((void)0) -#endif // INCLUDED_SAX_TEST_SAX_FACTORY_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
