summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Pipes
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2019-06-18 11:33:08 +0200
committerGitHub <noreply@github.com>2019-06-18 11:33:08 +0200
commitff96dc0e6ffd250b23ccb5ebceb12623da604435 (patch)
tree1a1279d6bff0945ae575c195ec357af239896d8f /Source/Core/InputCommon/ControllerInterface/Pipes
parentac562279c3a9fe9cc660b703ed0fd3f8ab2be758 (diff)
parent72b04a353ddfa79ec10fe447bef8eeaefc824976 (diff)
Merge pull request #8199 from lioncash/namespace
General: Use nested namespace specifiers where applicable
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Pipes')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp7
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h7
2 files changed, 4 insertions, 10 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
index a0e17da549..6b44466eb6 100644
--- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
@@ -20,9 +20,7 @@
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/ControllerInterface/Pipes/Pipes.h"
-namespace ciface
-{
-namespace Pipes
+namespace ciface::Pipes
{
static const std::array<std::string, 12> s_button_tokens{
{"A", "B", "X", "Y", "Z", "START", "L", "R", "D_UP", "D_DOWN", "D_LEFT", "D_RIGHT"}};
@@ -161,5 +159,4 @@ void PipeDevice::ParseCommand(const std::string& command)
}
}
}
-} // namespace Pipes
-} // namespace ciface
+} // namespace ciface::Pipes
diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h
index 86202a20f4..3d316f64e4 100644
--- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h
+++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h
@@ -8,9 +8,7 @@
#include <string>
#include <vector>
-namespace ciface
-{
-namespace Pipes
+namespace ciface::Pipes
{
// To create a piped controller input, create a named pipe in the
// Pipes directory and write commands out to it. Commands are separated
@@ -58,5 +56,4 @@ private:
std::map<std::string, PipeInput*> m_buttons;
std::map<std::string, PipeInput*> m_axes;
};
-} // namespace Pipes
-} // namespace ciface
+} // namespace ciface::Pipes