diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-06-17 16:39:24 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-06-17 16:51:41 -0400 |
| commit | ec60027f56bde17ef32a80b9f002225542c5859a (patch) | |
| tree | 3ef54d831d8690467348db2ad69f50868ed0e3fe /Source/Core/InputCommon/ControllerInterface/Pipes | |
| parent | 8e030a4a456cc74289cbed89ee8bbca60c9acc34 (diff) | |
InputCommon: Use nested namespace specifiers where applicable
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Pipes')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | 7 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h | 7 |
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 |
