Cleanup: Use blender namespace in blenkernel

This commit is contained in:
2020-06-29 11:48:22 +02:00
parent 0baa000b85
commit b51d6e8012
4 changed files with 16 additions and 18 deletions

View File

@@ -32,7 +32,8 @@
#include "BKE_node_tree_ref.hh"
namespace BKE {
namespace blender {
namespace bke {
class DSocket;
class DInputSocket;
@@ -448,6 +449,7 @@ inline Span<const DOutputSocket *> DerivedNodeTree::output_sockets() const
return m_output_sockets.as_span();
}
} // namespace BKE
} // namespace bke
} // namespace blender
#endif /* __BKE_DERIVED_NODE_TREE_HH__ */

View File

@@ -58,17 +58,8 @@
#include "RNA_access.h"
namespace BKE {
using blender::Array;
using blender::IndexRange;
using blender::LinearAllocator;
using blender::Map;
using blender::MutableSpan;
using blender::Span;
using blender::StringRef;
using blender::StringRefNull;
using blender::Vector;
namespace blender {
namespace bke {
class SocketRef;
class InputSocketRef;
@@ -443,6 +434,7 @@ inline bNodeTree *NodeTreeRef::btree() const
return m_btree;
}
} // namespace BKE
} // namespace bke
} // namespace blender
#endif /* __BKE_NODE_TREE_REF_HH__ */

View File

@@ -20,7 +20,8 @@
#define UNINITIALIZED_ID UINT32_MAX
namespace BKE {
namespace blender {
namespace bke {
static const NodeTreeRef &get_tree_ref(NodeTreeRefMap &node_tree_refs, bNodeTree *btree)
{
@@ -439,4 +440,5 @@ std::string DerivedNodeTree::to_dot() const
return digraph.to_dot_string();
}
} // namespace BKE
} // namespace bke
} // namespace blender

View File

@@ -18,7 +18,8 @@
#include "BLI_dot_export.hh"
namespace BKE {
namespace blender {
namespace bke {
NodeTreeRef::NodeTreeRef(bNodeTree *btree) : m_btree(btree)
{
@@ -175,4 +176,5 @@ std::string NodeTreeRef::to_dot() const
return digraph.to_dot_string();
}
} // namespace BKE
} // namespace bke
} // namespace blender