InputCommon/FunctionExpression: Collapse namespaces

Since we target C++17, we can collapse the namespaces into a single
declaration specifier.
This commit is contained in:
Lioncash 2019-11-22 14:44:33 -05:00
parent 6586ecc7a8
commit cb8fbe872e
2 changed files with 4 additions and 10 deletions

View File

@ -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

View File

@ -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 @@ private:
std::unique_ptr<FunctionExpression> MakeFunctionExpression(std::string name);
} // namespace ExpressionParser
} // namespace ciface
} // namespace ciface::ExpressionParser