diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 05:10:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 09:38:11 +0300 |
commit | fea1026bb8e2b5bfdf247491658c384805b51813 (patch) | |
tree | 5832a7cf88c0190a7f0f1933507dfaf8ca6965bb /source/blender/editors | |
parent | dfbda59a66bf15827ed127e61c0cbb4de5563db6 (diff) |
Cleanup: use 'pragma once'
Add explanations for cases the header-guard defines are still used.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/geometry/geometry_intern.h | 5 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_trace.h | 5 | ||||
-rw-r--r-- | source/blender/editors/include/ED_asset.h | 5 | ||||
-rw-r--r-- | source/blender/editors/include/ED_geometry.h | 5 |
4 files changed, 4 insertions, 16 deletions
diff --git a/source/blender/editors/geometry/geometry_intern.h b/source/blender/editors/geometry/geometry_intern.h index 7c037fea18a..8a0f9294722 100644 --- a/source/blender/editors/geometry/geometry_intern.h +++ b/source/blender/editors/geometry/geometry_intern.h @@ -21,13 +21,10 @@ * \ingroup edgeometry */ -#ifndef __GEOMETRY_INTERN_H__ -#define __GEOMETRY_INTERN_H__ +#pragma once struct wmOperatorType; /* *** geometry_attributes.c *** */ void GEOMETRY_OT_attribute_add(struct wmOperatorType *ot); void GEOMETRY_OT_attribute_remove(struct wmOperatorType *ot); - -#endif /* __GEOMETRY_INTERN_H__ */ diff --git a/source/blender/editors/gpencil/gpencil_trace.h b/source/blender/editors/gpencil/gpencil_trace.h index 85eb4e0609f..25d8dac2734 100644 --- a/source/blender/editors/gpencil/gpencil_trace.h +++ b/source/blender/editors/gpencil/gpencil_trace.h @@ -21,8 +21,7 @@ * \ingroup edgpencil */ -#ifndef __GPENCIL_TRACE_H__ -#define __GPENCIL_TRACE_H__ +#pragma once /* internal exports only */ struct FILE; @@ -79,5 +78,3 @@ void ED_gpencil_trace_data_to_strokes(struct Main *bmain, const float sample, const int32_t resolution, const int32_t thickness); - -#endif /* __GPENCIL_TRACE_H__ */ diff --git a/source/blender/editors/include/ED_asset.h b/source/blender/editors/include/ED_asset.h index 6fe50528cc5..dd505167fe5 100644 --- a/source/blender/editors/include/ED_asset.h +++ b/source/blender/editors/include/ED_asset.h @@ -18,8 +18,7 @@ * \ingroup editors */ -#ifndef __ED_ASSET_H__ -#define __ED_ASSET_H__ +#pragma once #ifdef __cplusplus extern "C" { @@ -35,5 +34,3 @@ void ED_operatortypes_asset(void); #ifdef __cplusplus } #endif - -#endif /* __ED_ASSET_H__ */ diff --git a/source/blender/editors/include/ED_geometry.h b/source/blender/editors/include/ED_geometry.h index 53eeba39088..d74fd15aaa7 100644 --- a/source/blender/editors/include/ED_geometry.h +++ b/source/blender/editors/include/ED_geometry.h @@ -21,8 +21,7 @@ * \ingroup editors */ -#ifndef __ED_GEOMETRY_H__ -#define __ED_GEOMETRY_H__ +#pragma once #ifdef __cplusplus extern "C" { @@ -33,5 +32,3 @@ void ED_operatortypes_geometry(void); #ifdef __cplusplus } #endif - -#endif /* __ED_GEOMETRY_H__ */ |