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/editors/space_statusbar | |
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/editors/space_statusbar')
-rw-r--r-- | source/blender/editors/space_statusbar/space_statusbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_statusbar/space_statusbar.c b/source/blender/editors/space_statusbar/space_statusbar.c index 34d7f8b0216..ae56b111360 100644 --- a/source/blender/editors/space_statusbar/space_statusbar.c +++ b/source/blender/editors/space_statusbar/space_statusbar.c @@ -42,7 +42,7 @@ /* ******************** default callbacks for statusbar space ******************** */ -static SpaceLink *statusbar_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) +static SpaceLink *statusbar_create(const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) { ARegion *region; SpaceStatusBar *sstatusbar; @@ -158,7 +158,7 @@ void ED_spacetype_statusbar(void) st->spaceid = SPACE_STATUSBAR; strncpy(st->name, "Status Bar", BKE_ST_MAXNAME); - st->new = statusbar_new; + st->create = statusbar_create; st->free = statusbar_free; st->init = statusbar_init; st->duplicate = statusbar_duplicate; |