summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-03-10 23:40:16 +0100
committerPierre Bourdon <delroth@gmail.com>2014-03-10 23:40:16 +0100
commitede46556d9b5043113e19359fee97eb09f9c872c (patch)
tree54442e504fc06d44e80a7351be46a1fead5ad356 /Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
parent52ed10213d085caec6007ae3b3856e50f282c756 (diff)
parent31cfc73a09a8685cbab20502b4bc132e98e2feb5 (diff)
Merge pull request #155 from Parlane/codestyle_fixes
Fixes spacing for "for", "while", "switch" and "if"
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
index 75b21c0e8c..7f5a74041a 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
@@ -24,7 +24,7 @@ namespace DInput
void GetXInputGUIDS( std::vector<DWORD>& guids )
{
-#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=nullptr; } }
+#define SAFE_RELEASE(p) { if (p) { (p)->Release(); (p)=nullptr; } }
IWbemLocator* pIWbemLocator = nullptr;
IEnumWbemClassObject* pEnumDevices = nullptr;
@@ -50,9 +50,9 @@ void GetXInputGUIDS( std::vector<DWORD>& guids )
if (FAILED(hr) || pIWbemLocator == nullptr)
goto LCleanup;
- bstrNamespace = SysAllocString(L"\\\\.\\root\\cimv2");if(bstrNamespace == nullptr) goto LCleanup;
- bstrClassName = SysAllocString(L"Win32_PNPEntity"); if(bstrClassName == nullptr) goto LCleanup;
- bstrDeviceID = SysAllocString(L"DeviceID"); if(bstrDeviceID == nullptr) goto LCleanup;
+ bstrNamespace = SysAllocString(L"\\\\.\\root\\cimv2"); if (bstrNamespace == nullptr) goto LCleanup;
+ bstrClassName = SysAllocString(L"Win32_PNPEntity"); if (bstrClassName == nullptr) goto LCleanup;
+ bstrDeviceID = SysAllocString(L"DeviceID"); if (bstrDeviceID == nullptr) goto LCleanup;
// Connect to WMI
hr = pIWbemLocator->ConnectServer(bstrNamespace, nullptr, nullptr, 0L, 0L, nullptr, nullptr, &pIWbemServices);
@@ -105,11 +105,11 @@ void GetXInputGUIDS( std::vector<DWORD>& guids )
}
LCleanup:
- if(bstrNamespace)
+ if (bstrNamespace)
SysFreeString(bstrNamespace);
- if(bstrDeviceID)
+ if (bstrDeviceID)
SysFreeString(bstrDeviceID);
- if(bstrClassName)
+ if (bstrClassName)
SysFreeString(bstrClassName);
for (UINT iDevice = 0; iDevice < 20; iDevice++)
SAFE_RELEASE(pDevices[iDevice]);