[Bf-blender-cvs] [fc5ef2452de] master: Cleanup: Namespace alias for internal outliner header

Julian Eisel noreply at git.blender.org
Mon Jan 31 18:37:40 CET 2022


Commit: fc5ef2452deb55436b7486170e595e4c2ea7e5c0
Author: Julian Eisel
Date:   Mon Jan 31 11:14:25 2022 +0100
Branches: master
https://developer.blender.org/rBfc5ef2452deb55436b7486170e595e4c2ea7e5c0

Cleanup: Namespace alias for internal outliner header

Long namespace qualifiers add visual noice and make code harder to read.

===================================================================

M	source/blender/editors/space_outliner/outliner_intern.hh

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_intern.hh b/source/blender/editors/space_outliner/outliner_intern.hh
index 9db1d73dc76..ccadc829f50 100644
--- a/source/blender/editors/space_outliner/outliner_intern.hh
+++ b/source/blender/editors/space_outliner/outliner_intern.hh
@@ -57,10 +57,12 @@ class AbstractTreeDisplay;
 class AbstractTreeElement;
 }  // namespace blender::ed::outliner
 
+namespace outliner = blender::ed::outliner;
+
 struct SpaceOutliner_Runtime {
   /** Object to create and manage the tree for a specific display type (View Layers, Scenes,
    * Blender File, etc.). */
-  std::unique_ptr<blender::ed::outliner::AbstractTreeDisplay> tree_display;
+  std::unique_ptr<outliner::AbstractTreeDisplay> tree_display;
 
   /** Pointers to tree-store elements, grouped by `(id, type, nr)`
    *  in hash-table for faster searching. */
@@ -97,7 +99,7 @@ typedef struct TreeElement {
    * #TreeElement. Step by step, data should be moved to it and operations based on the type should
    * become virtual methods of the class hierarchy.
    */
-  std::unique_ptr<blender::ed::outliner::AbstractTreeElement> type;
+  std::unique_ptr<outliner::AbstractTreeElement> type;
 
   ListBase subtree;
   int xs, ys;                /* Do selection. */



More information about the Bf-blender-cvs mailing list