From 6952be913510c63716940648a06163c19622187e Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Sun, 9 Jan 2022 06:34:39 +1100 Subject: tdf#143148 registry: Use pragma once instead of include guards Change-Id: I8598034598d6911b784a1550c78552f6ac87bc22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128172 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- registry/source/reflcnst.hxx | 6 +----- registry/source/regimpl.hxx | 5 +---- registry/source/regkey.hxx | 5 +---- 3 files changed, 3 insertions(+), 13 deletions(-) (limited to 'registry') diff --git a/registry/source/reflcnst.hxx b/registry/source/reflcnst.hxx index 529d02f9d68a..2c93a9cd22f2 100644 --- a/registry/source/reflcnst.hxx +++ b/registry/source/reflcnst.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_REGISTRY_SOURCE_REFLCNST_HXX -#define INCLUDED_REGISTRY_SOURCE_REFLCNST_HXX +#pragma once #include @@ -186,7 +185,4 @@ sal_uInt32 readString(const sal_uInt8* buffer, sal_Unicode* v, sal_uInt32 maxSiz sal_uInt32 UINT16StringLen(const sal_uInt8* wstring); -#endif - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/registry/source/regimpl.hxx b/registry/source/regimpl.hxx index ecc7d1a9551d..25f9d50e7695 100644 --- a/registry/source/regimpl.hxx +++ b/registry/source/regimpl.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_REGISTRY_SOURCE_REGIMPL_HXX -#define INCLUDED_REGISTRY_SOURCE_REGIMPL_HXX +#pragma once #include @@ -121,6 +120,4 @@ private: static constexpr OUStringLiteral ROOT { u"/" }; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/registry/source/regkey.hxx b/registry/source/regkey.hxx index 76e8c2993c18..51114e5ccceb 100644 --- a/registry/source/regkey.hxx +++ b/registry/source/regkey.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_REGISTRY_SOURCE_REGKEY_HXX -#define INCLUDED_REGISTRY_SOURCE_REGKEY_HXX +#pragma once #include #include @@ -64,6 +63,4 @@ RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString**, sal_uInt32); } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit