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 <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Yui Nguyen
2025-11-09 11:15:13 +01:00
committed by Ilmari Lauhakangas
parent c874834280
commit 83a030d305
6 changed files with 6 additions and 24 deletions
+1 -4
View File
@@ -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: */
+1 -4
View File
@@ -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: */
+1 -4
View File
@@ -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: */
+1 -4
View File
@@ -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: */
+1 -4
View File
@@ -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: */
+1 -4
View File
@@ -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: */