Use C++17 format for nested namespace definitions
Use the new C++17 format for defining nested namespaces in the
phosphor-regulators application.
The definition
namespace A::B::C
{
...
}
is now equivalent to
namespace A
{
namespace B
{
namespace C
{
...
}
}
}
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I284055bc94578a45d04d3561f511c0e347a8ecef
diff --git a/phosphor-regulators/src/actions/action_environment.hpp b/phosphor-regulators/src/actions/action_environment.hpp
index fb34141..e519fa5 100644
--- a/phosphor-regulators/src/actions/action_environment.hpp
+++ b/phosphor-regulators/src/actions/action_environment.hpp
@@ -23,11 +23,7 @@
#include <stdexcept>
#include <string>
-namespace phosphor
-{
-namespace power
-{
-namespace regulators
+namespace phosphor::power::regulators
{
/**
@@ -225,6 +221,4 @@
size_t ruleDepth{0};
};
-} // namespace regulators
-} // namespace power
-} // namespace phosphor
+} // namespace phosphor::power::regulators