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/ForceFeedback | |
| parent | 8e030a4a456cc74289cbed89ee8bbca60c9acc34 (diff) | |
InputCommon: Use nested namespace specifiers where applicable
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ForceFeedback')
3 files changed, 6 insertions, 17 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp index baa3018616..44fc87b712 100644 --- a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp @@ -9,9 +9,7 @@ #include "Common/Thread.h" -namespace ciface -{ -namespace ForceFeedback +namespace ciface::ForceFeedback { // Template instantiation: template class ForceFeedbackDevice::TypedForce<DICONSTANTFORCE>; @@ -257,6 +255,4 @@ void ForceFeedbackDevice::Force::Release() m_effect->Unload(); m_effect->Release(); } - -} // namespace ForceFeedback -} // namespace ciface +} // namespace ciface::ForceFeedback diff --git a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h index 8f5814106e..c689cef5a5 100644 --- a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h +++ b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h @@ -19,9 +19,7 @@ #include "InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h" #endif -namespace ciface -{ -namespace ForceFeedback +namespace ciface::ForceFeedback { class ForceFeedbackDevice : public Core::Device { @@ -83,6 +81,4 @@ private: Common::Event m_update_event; Common::Flag m_run_thread; }; - -} // namespace ForceFeedback -} // namespace ciface +} // namespace ciface::ForceFeedback diff --git a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h index 0e684251e7..0ebd74d485 100644 --- a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h +++ b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h @@ -20,9 +20,7 @@ typedef LONG* LPLONG; // Missing type for ForceFeedback.h #include "Common/CommonTypes.h" // for LONG #include "DirectInputConstants.h" // Not stricty necessary -namespace ciface -{ -namespace ForceFeedback +namespace ciface::ForceFeedback { // Prototypes class IUnknownImpl; @@ -196,5 +194,4 @@ public: return FFDeviceSetForceFeedbackProperty(m_device, property, &value); } }; -} // namespace ForceFeedback -} // namespace ciface +} // namespace ciface::ForceFeedback |
