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 <sbergman@redhat.com>
This commit is contained in:
Chris Sherlock 2022-01-09 06:34:39 +11:00 committed by Stephan Bergmann
parent 591b9daf8c
commit 6952be9135
10 changed files with 10 additions and 41 deletions

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_READER_HXX
#define INCLUDED_REGISTRY_READER_HXX
#pragma once
#include <registry/typereg_reader.hxx>
#include <registry/refltype.hxx>
@ -601,6 +600,4 @@ private:
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_REFLTYPE_HXX
#define INCLUDED_REGISTRY_REFLTYPE_HXX
#pragma once
#include <registry/types.hxx>
#include <sal/types.h>
@ -47,6 +46,4 @@ public:
/// specifies the calling convention for type reader/writer api
#define TYPEREG_CALLTYPE SAL_CALL
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_REGDLLAPI_H
#define INCLUDED_REGISTRY_REGDLLAPI_H
#pragma once
#include <sal/types.h>
@ -28,6 +27,4 @@
#define REG_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#endif // INCLUDED_REGISTRY_REGDLLAPI_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_REGTYPE_H
#define INCLUDED_REGISTRY_REGTYPE_H
#pragma once
#include <sal/types.h>
#include <o3tl/typed_flags_set.hxx>
@ -136,6 +135,4 @@ enum class SAL_DLLPUBLIC_RTTI RegError
/// specify the calling convention for the registry API
#define REGISTRY_CALLTYPE SAL_CALL
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_READER_H
#define INCLUDED_REGISTRY_READER_H
#pragma once
#include <registry/regdllapi.h>
#include <registry/types.hxx>
@ -560,6 +559,4 @@ REG_DLLPUBLIC RTReferenceType typereg_reader_getReferenceSort(
REG_DLLPUBLIC void typereg_reader_getReferenceTypeName(
void * handle, rtl_uString ** result, sal_uInt16 index);
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_TYPES_H
#define INCLUDED_REGISTRY_TYPES_H
#pragma once
#include <sal/types.h>
#include <o3tl/typed_flags_set.hxx>
@ -334,6 +333,4 @@ enum class RTReferenceType
TYPE_PARAMETER
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_REGISTRY_VERSION_H
#define INCLUDED_REGISTRY_VERSION_H
#pragma once
#include <sal/types.h>
@ -64,6 +63,4 @@ enum typereg_Version {
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -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 <registry/types.hxx>
@ -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: */

View file

@ -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 <sal/config.h>
@ -121,6 +120,4 @@ private:
static constexpr OUStringLiteral ROOT { u"/" };
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -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 <sal/config.h>
#include <registry/regtype.h>
@ -64,6 +63,4 @@ RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString**, sal_uInt32);
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */