diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-04 15:39:53 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-04 15:40:15 +0300 |
commit | 675fa2ee132528a9d2872b278a7d9ffa98887fdb (patch) | |
tree | 78e6e406a0bea5a1ee02c9ef86daaecd168a1689 /source/blender/io/alembic/intern | |
parent | 7fbbe719226cec2f5eec98bea69b5a4807df550b (diff) |
Refactor: rename SpaceType->new to SpaceType->create
The data member `new` was conflicting with the `new` keyword
when `BKE_screen.h` was included in C++ files.
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8459
Diffstat (limited to 'source/blender/io/alembic/intern')
-rw-r--r-- | source/blender/io/alembic/intern/alembic_capi.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/io/alembic/intern/alembic_capi.cc b/source/blender/io/alembic/intern/alembic_capi.cc index 89eb9ed41a1..eba7f64db02 100644 --- a/source/blender/io/alembic/intern/alembic_capi.cc +++ b/source/blender/io/alembic/intern/alembic_capi.cc @@ -48,18 +48,13 @@ #include "BKE_lib_id.h" #include "BKE_object.h" #include "BKE_scene.h" +#include "BKE_screen.h" #include "DEG_depsgraph.h" #include "DEG_depsgraph_build.h" #include "ED_undo.h" -/* SpaceType struct has a member called 'new' which obviously conflicts with C++ - * so temporarily redefining the new keyword to make it compile. */ -#define new extern_new -#include "BKE_screen.h" -#undef new - #include "BLI_compiler_compat.h" #include "BLI_fileops.h" #include "BLI_ghash.h" |