summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/OSX
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-17 16:39:24 -0400
committerLioncash <mathew1800@gmail.com>2019-06-17 16:51:41 -0400
commitec60027f56bde17ef32a80b9f002225542c5859a (patch)
tree3ef54d831d8690467348db2ad69f50868ed0e3fe /Source/Core/InputCommon/ControllerInterface/OSX
parent8e030a4a456cc74289cbed89ee8bbca60c9acc34 (diff)
InputCommon: Use nested namespace specifiers where applicable
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/OSX')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/OSX.h7
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm7
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h7
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.mm7
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/RunLoopStopper.h8
5 files changed, 10 insertions, 26 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.h b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.h
index 64a715b246..955b426f5e 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.h
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.h
@@ -4,14 +4,11 @@
#pragma once
-namespace ciface
-{
-namespace OSX
+namespace ciface::OSX
{
void Init(void* window);
void PopulateDevices(void* window);
void DeInit();
void DeviceElementDebugPrint(const void*, void*);
-} // namespace OSX
-} // namespace ciface
+} // namespace ciface::OSX
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm
index a923c1ea26..716a56b61e 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm
@@ -17,9 +17,7 @@
#include "InputCommon/ControllerInterface/OSX/OSXJoystick.h"
#include "InputCommon/ControllerInterface/OSX/RunLoopStopper.h"
-namespace ciface
-{
-namespace OSX
+namespace ciface::OSX
{
constexpr CFTimeInterval FOREVER = 1e20;
static std::thread s_hotplug_thread;
@@ -227,5 +225,4 @@ void DeInit()
IOHIDManagerClose(HIDManager, kIOHIDOptionsTypeNone);
CFRelease(HIDManager);
}
-}
-}
+} // namespace ciface::OSX
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h b/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h
index d6579dc0c8..377f7d9b29 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h
@@ -11,9 +11,7 @@
#include "InputCommon/ControllerInterface/Device.h"
#include "InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h"
-namespace ciface
-{
-namespace OSX
+namespace ciface::OSX
{
class Joystick : public ForceFeedback::ForceFeedbackDevice
{
@@ -90,5 +88,4 @@ private:
ForceFeedback::FFDeviceAdapterReference m_ff_device;
};
-} // namespace OSX
-} // namespace ciface
+} // namespace ciface::OSX
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.mm
index e2c08707c5..9ab06c91db 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.mm
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.mm
@@ -13,9 +13,7 @@
#include "Common/Logging/Log.h"
#include "Common/StringUtil.h"
-namespace ciface
-{
-namespace OSX
+namespace ciface::OSX
{
void Joystick::AddElements(CFArrayRef elements, std::set<IOHIDElementCookie>& cookies)
{
@@ -341,5 +339,4 @@ bool Joystick::IsSameDevice(const IOHIDDeviceRef other_device) const
{
return m_device == other_device;
}
-}
-}
+} // namespace ciface::OSX
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/RunLoopStopper.h b/Source/Core/InputCommon/ControllerInterface/OSX/RunLoopStopper.h
index 0d37098a21..c43a0383dc 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/RunLoopStopper.h
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/RunLoopStopper.h
@@ -6,9 +6,7 @@
#include <Foundation/Foundation.h>
-namespace ciface
-{
-namespace OSX
+namespace ciface::OSX
{
class RunLoopStopper
{
@@ -40,6 +38,4 @@ public:
CFRunLoopRemoveSource(runloop, m_source, mode);
}
};
-
-} // namespace OSX
-} // namespace ciface
+} // namespace ciface::OSX