Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-03 15:25:20 +0300
committerJacques Lucke <jacques@blender.org>2020-07-03 15:25:20 +0300
commit395b294b614f43faac0ffaef167aed1b94a53b8e (patch)
treefb91d677fe1648d3646a6ba1f18e6f323aa77cd2 /source/blender/blenlib
parent5fbf70b0d0c5a387d01bba4b4d536d166e16ac0e (diff)
Cleanup: use nested namespaces
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_dot_export.hh6
-rw-r--r--source/blender/blenlib/BLI_dot_export_attribute_enums.hh6
-rw-r--r--source/blender/blenlib/intern/dot_export.cc6
3 files changed, 6 insertions, 12 deletions
diff --git a/source/blender/blenlib/BLI_dot_export.hh b/source/blender/blenlib/BLI_dot_export.hh
index bad7e4c57a8..450cb2ef58c 100644
--- a/source/blender/blenlib/BLI_dot_export.hh
+++ b/source/blender/blenlib/BLI_dot_export.hh
@@ -34,8 +34,7 @@
#include <optional>
#include <sstream>
-namespace blender {
-namespace dot {
+namespace blender::dot {
class Graph;
class DirectedGraph;
@@ -283,7 +282,6 @@ class NodeWithSocketsRef {
}
};
-} // namespace dot
-} // namespace blender
+} // namespace blender::dot
#endif /* __BLI_DOT_EXPORT_HH__ */
diff --git a/source/blender/blenlib/BLI_dot_export_attribute_enums.hh b/source/blender/blenlib/BLI_dot_export_attribute_enums.hh
index 12019a49194..94c7025b2a6 100644
--- a/source/blender/blenlib/BLI_dot_export_attribute_enums.hh
+++ b/source/blender/blenlib/BLI_dot_export_attribute_enums.hh
@@ -19,8 +19,7 @@
#include "BLI_string_ref.hh"
-namespace blender {
-namespace dot {
+namespace blender ::dot {
enum class Attr_rankdir {
LeftToRight,
@@ -119,7 +118,6 @@ inline StringRef dirType_to_string(Attr_dirType value)
return "";
}
-} // namespace dot
-} // namespace blender
+} // namespace blender::dot
#endif /* __BLI_DOT_EXPORT_ATTRIBUTE_ENUMS_HH__ */
diff --git a/source/blender/blenlib/intern/dot_export.cc b/source/blender/blenlib/intern/dot_export.cc
index 5c02ab977b8..0f60ea6fd1b 100644
--- a/source/blender/blenlib/intern/dot_export.cc
+++ b/source/blender/blenlib/intern/dot_export.cc
@@ -18,8 +18,7 @@
#include "BLI_dot_export.hh"
-namespace blender {
-namespace dot {
+namespace blender::dot {
/* Graph Building
************************************************/
@@ -301,5 +300,4 @@ NodeWithSocketsRef::NodeWithSocketsRef(Node &node,
node_->set_shape(Attr_shape::Rectangle);
}
-} // namespace dot
-} // namespace blender
+} // namespace blender::dot