diff options
author | Julian Eisel <julian@blender.org> | 2022-08-24 20:45:48 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-08-24 21:10:15 +0300 |
commit | b19c51c7f42ea8940ff456a4b3945e905c4e3d5a (patch) | |
tree | 8f270b31041bebcb04308f16243ae268cc6b1ec0 /source/blender/editors/space_outliner/space_outliner.cc | |
parent | ce1f401b42fa2f87e985d31042f867333ec0237b (diff) |
Cleanup: Move outliner types to namespace, avoid C-style type definition
With C++ we should transition towards namespaces to avoid naming
collisions. Having the namespace in place is the first step for that
transition.
Plus, the `typedef` isn't necessary for struct/class/enum definitions
in C++, so avoid the verbosity it adds.
Diffstat (limited to 'source/blender/editors/space_outliner/space_outliner.cc')
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.cc b/source/blender/editors/space_outliner/space_outliner.cc index 66ee0f4f3af..04f326d62f9 100644 --- a/source/blender/editors/space_outliner/space_outliner.cc +++ b/source/blender/editors/space_outliner/space_outliner.cc @@ -37,6 +37,8 @@ #include "outliner_intern.hh" #include "tree/tree_display.hh" +namespace blender::ed::outliner { + SpaceOutliner_Runtime::SpaceOutliner_Runtime(const SpaceOutliner_Runtime & /*other*/) : tree_display(nullptr), tree_hash(nullptr) { @@ -433,8 +435,12 @@ static void outliner_deactivate(struct ScrArea *area) ED_region_tag_redraw_no_rebuild(BKE_area_find_region_type(area, RGN_TYPE_WINDOW)); } +} // namespace blender::ed::outliner + void ED_spacetype_outliner(void) { + using namespace blender::ed::outliner; + SpaceType *st = MEM_cnew<SpaceType>("spacetype time"); ARegionType *art; |