Skip to content
Permalink
Browse files

InputCommon/FunctionExpression: Collapse namespaces

Since we target C++17, we can collapse the namespaces into a single
declaration specifier.
  • Loading branch information
lioncash committed Nov 22, 2019
1 parent 6586ecc commit cb8fbe872e86705136bd1fa5f50b2bccfbb9b50a
@@ -8,9 +8,7 @@
#include <chrono>
#include <cmath>

namespace ciface
{
namespace ExpressionParser
namespace ciface::ExpressionParser
{
constexpr int LOOP_MAX_REPS = 10000;
constexpr ControlState CONDITION_THRESHOLD = 0.5;
@@ -523,5 +521,4 @@ void FunctionExpression::SetValue(ControlState)
{
}

} // namespace ExpressionParser
} // namespace ciface
} // namespace ciface::ExpressionParser
@@ -12,9 +12,7 @@
#include "InputCommon/ControlReference/ExpressionParser.h"
#include "InputCommon/ControlReference/FunctionExpression.h"

namespace ciface
{
namespace ExpressionParser
namespace ciface::ExpressionParser
{
class FunctionExpression : public Expression
{
@@ -51,5 +49,4 @@ class FunctionExpression : public Expression

std::unique_ptr<FunctionExpression> MakeFunctionExpression(std::string name);

} // namespace ExpressionParser
} // namespace ciface
} // namespace ciface::ExpressionParser

0 comments on commit cb8fbe8

Please sign in to comment.
You can’t perform that action at this time.