diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2020-11-07 15:47:12 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-11-07 16:18:13 +0300 |
commit | 4525049aa0cf818f6483dce589ac9791eb562338 (patch) | |
tree | bdf5258903fb8435bf38a1925c9c32f32c20616c /source/blender/freestyle/intern/stroke | |
parent | a452fcb9a5495ecbbbaedb7e5c631814c7f4372a (diff) |
Cleanup: Clang-tidy, modernize-concat-nested-namespaces
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
4 files changed, 8 insertions, 25 deletions
diff --git a/source/blender/freestyle/intern/stroke/AdvancedFunctions0D.cpp b/source/blender/freestyle/intern/stroke/AdvancedFunctions0D.cpp index 95d4735ddc4..4e0253c88e9 100644 --- a/source/blender/freestyle/intern/stroke/AdvancedFunctions0D.cpp +++ b/source/blender/freestyle/intern/stroke/AdvancedFunctions0D.cpp @@ -25,9 +25,7 @@ #include "../view_map/Functions0D.h" #include "../view_map/SteerableViewMap.h" -namespace Freestyle { - -namespace Functions0D { +namespace Freestyle::Functions0D { int DensityF0D::operator()(Interface0DIterator &iter) { @@ -114,6 +112,4 @@ int GetViewMapGradientNormF0D::operator()(Interface0DIterator &iter) return 0; } -} // end of namespace Functions0D - -} /* namespace Freestyle */ +} // namespace Freestyle::Functions0D diff --git a/source/blender/freestyle/intern/stroke/AdvancedFunctions1D.cpp b/source/blender/freestyle/intern/stroke/AdvancedFunctions1D.cpp index c01d95211d8..7a516470e6b 100644 --- a/source/blender/freestyle/intern/stroke/AdvancedFunctions1D.cpp +++ b/source/blender/freestyle/intern/stroke/AdvancedFunctions1D.cpp @@ -24,10 +24,7 @@ #include "../view_map/SteerableViewMap.h" -namespace Freestyle { - -// FIXME -namespace Functions1D { +namespace Freestyle::Functions1D { int GetSteerableViewMapDensityF1D::operator()(Interface1D &inter) { @@ -127,6 +124,4 @@ int GetViewMapGradientNormF1D::operator()(Interface1D &inter) return 0; } -} // namespace Functions1D - -} /* namespace Freestyle */ +} // namespace Freestyle::Functions1D diff --git a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp index af247851911..335bfdffe90 100644 --- a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp +++ b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp @@ -40,9 +40,7 @@ #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" -namespace Freestyle { - -namespace StrokeShaders { +namespace Freestyle::StrokeShaders { // // Thickness modifiers @@ -697,6 +695,4 @@ int TipRemoverShader::shade(Stroke &stroke) const return 0; } -} // end of namespace StrokeShaders - -} /* namespace Freestyle */ +} // namespace Freestyle::StrokeShaders diff --git a/source/blender/freestyle/intern/stroke/ContextFunctions.cpp b/source/blender/freestyle/intern/stroke/ContextFunctions.cpp index 5609013a417..c6140f463ab 100644 --- a/source/blender/freestyle/intern/stroke/ContextFunctions.cpp +++ b/source/blender/freestyle/intern/stroke/ContextFunctions.cpp @@ -26,9 +26,7 @@ #include "../system/TimeStamp.h" -namespace Freestyle { - -namespace ContextFunctions { +namespace Freestyle::ContextFunctions { unsigned GetTimeStampCF() { @@ -78,6 +76,4 @@ FEdge *GetSelectedFEdgeCF() return Canvas::getInstance()->selectedFEdge(); } -} // namespace ContextFunctions - -} /* namespace Freestyle */ +} // namespace Freestyle::ContextFunctions |