From 8ca611b2125a74cfdb273cfedfa3b94de14f628b Mon Sep 17 00:00:00 2001 From: buldi Date: Thu, 9 Feb 2023 22:53:12 +0100 Subject: [PATCH] tdf#143148 Use pragma once instead of include guards Change-Id: I5a88b699425a37b914a71400e918965a9f6116eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146730 Tested-by: Jenkins Reviewed-by: Julien Nabet --- pyuno/source/module/pyuno_impl.hxx | 5 +---- registry/inc/regapi.hxx | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 90e94af07401..946991c3864b 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.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_PYUNO_SOURCE_MODULE_PYUNO_IMPL_HXX -#define INCLUDED_PYUNO_SOURCE_MODULE_PYUNO_IMPL_HXX +#pragma once #if defined(_MSC_VER) // Workaround for some horrible hypot() mess @@ -300,6 +299,4 @@ void decreaseRefCount( PyInterpreterState *interpreter, PyObject *object ); } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/registry/inc/regapi.hxx b/registry/inc/regapi.hxx index ae5b7e119e48..6d1ed00f532a 100644 --- a/registry/inc/regapi.hxx +++ b/registry/inc/regapi.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_REGISTRY_INC_REGAPI_HXX -#define INCLUDED_REGISTRY_INC_REGAPI_HXX +#pragma once #include #include @@ -85,6 +84,4 @@ REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_closeRegistry(RegHandle hRegistry); */ REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_dumpRegistry(RegKeyHandle hKey); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */