mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-30 04:21:16 +00:00
InputCommon/FunctionExpression: Collapse namespaces
Since we target C++17, we can collapse the namespaces into a single declaration specifier.
This commit is contained in:
parent
6586ecc7a8
commit
cb8fbe872e
@ -8,9 +8,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
namespace ciface
|
namespace ciface::ExpressionParser
|
||||||
{
|
|
||||||
namespace ExpressionParser
|
|
||||||
{
|
{
|
||||||
constexpr int LOOP_MAX_REPS = 10000;
|
constexpr int LOOP_MAX_REPS = 10000;
|
||||||
constexpr ControlState CONDITION_THRESHOLD = 0.5;
|
constexpr ControlState CONDITION_THRESHOLD = 0.5;
|
||||||
@ -523,5 +521,4 @@ void FunctionExpression::SetValue(ControlState)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ExpressionParser
|
} // namespace ciface::ExpressionParser
|
||||||
} // namespace ciface
|
|
||||||
|
@ -12,9 +12,7 @@
|
|||||||
#include "InputCommon/ControlReference/ExpressionParser.h"
|
#include "InputCommon/ControlReference/ExpressionParser.h"
|
||||||
#include "InputCommon/ControlReference/FunctionExpression.h"
|
#include "InputCommon/ControlReference/FunctionExpression.h"
|
||||||
|
|
||||||
namespace ciface
|
namespace ciface::ExpressionParser
|
||||||
{
|
|
||||||
namespace ExpressionParser
|
|
||||||
{
|
{
|
||||||
class FunctionExpression : public Expression
|
class FunctionExpression : public Expression
|
||||||
{
|
{
|
||||||
@ -51,5 +49,4 @@ private:
|
|||||||
|
|
||||||
std::unique_ptr<FunctionExpression> MakeFunctionExpression(std::string name);
|
std::unique_ptr<FunctionExpression> MakeFunctionExpression(std::string name);
|
||||||
|
|
||||||
} // namespace ExpressionParser
|
} // namespace ciface::ExpressionParser
|
||||||
} // namespace ciface
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user