InputCommon: Use nested namespace specifiers where applicable

This commit is contained in:
Lioncash
2019-06-17 16:39:24 -04:00
parent 8e030a4a45
commit ec60027f56
38 changed files with 78 additions and 195 deletions

View File

@ -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

View File

@ -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

View File

@ -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