From 74583d24f67f41d15da211cfb00b7eaa8419e685 Mon Sep 17 00:00:00 2001 From: Alchemist Date: Thu, 31 Dec 2020 18:04:12 +0530 Subject: tdf#124176 Use pragma once instead of include guards Change-Id: I491742c51ddc7c97f02b148dfb81d9ba820a759e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108600 Tested-by: Jenkins Reviewed-by: Julien Nabet --- io/source/acceptor/acceptor.hxx | 4 +--- io/source/connector/connector.hxx | 4 +--- io/source/stm/streamhelper.hxx | 5 +---- io/test/stm/testfactreg.hxx | 6 +----- 4 files changed, 4 insertions(+), 15 deletions(-) (limited to 'io') diff --git a/io/source/acceptor/acceptor.hxx b/io/source/acceptor/acceptor.hxx index a88f3728f5e7..0ebe00c9e372 100644 --- a/io/source/acceptor/acceptor.hxx +++ b/io/source/acceptor/acceptor.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_IO_SOURCE_ACCEPTOR_ACCEPTOR_HXX -#define INCLUDED_IO_SOURCE_ACCEPTOR_ACCEPTOR_HXX +#pragma once #include #include @@ -71,6 +70,5 @@ namespace io_acceptor { } -#endif // INCLUDED_IO_SOURCE_ACCEPTOR_ACCEPTOR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/io/source/connector/connector.hxx b/io/source/connector/connector.hxx index 9aad55a45dfa..a9321932798e 100644 --- a/io/source/connector/connector.hxx +++ b/io/source/connector/connector.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_IO_SOURCE_CONNECTOR_CONNECTOR_HXX -#define INCLUDED_IO_SOURCE_CONNECTOR_CONNECTOR_HXX +#pragma once #include @@ -90,6 +89,5 @@ namespace stoc_connector }; } -#endif // INCLUDED_IO_SOURCE_CONNECTOR_CONNECTOR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx index c1bb1b7db748..6d49003e9d77 100644 --- a/io/source/stm/streamhelper.hxx +++ b/io/source/stm/streamhelper.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX -#define INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX +#pragma once #include @@ -83,6 +82,4 @@ public: } -#endif // INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/io/test/stm/testfactreg.hxx b/io/test/stm/testfactreg.hxx index 2dbff6d62d2b..7952867b4912 100644 --- a/io/test/stm/testfactreg.hxx +++ b/io/test/stm/testfactreg.hxx @@ -17,9 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_IO_TEST_STM_TESTFACTREG_HXX -#define INCLUDED_IO_TEST_STM_TESTFACTREG_HXX - +#pragma once #include Reference< XInterface > SAL_CALL OPipeTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw( Exception ); @@ -106,6 +104,4 @@ Sequence createIntSeq( sal_Int32 i ); }\ ((void)0) -#endif // INCLUDED_IO_TEST_STM_TESTFACTREG_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit