mirror of https://github.com/PCSX2/pcsx2.git
PAD: Fix variable initializations.
Codacy Warning: Variable 'variable' is assigned in constructor body. Consider performing initialization in initialization list
This commit is contained in:
parent
97aaf3ef9b
commit
060a8f6345
|
@ -18,9 +18,9 @@
|
||||||
GamepadConfiguration::GamepadConfiguration(int pad, wxWindow* parent)
|
GamepadConfiguration::GamepadConfiguration(int pad, wxWindow* parent)
|
||||||
: wxDialog(parent, wxID_ANY, _T("Gamepad"), wxDefaultPosition, wxDefaultSize,
|
: wxDialog(parent, wxID_ANY, _T("Gamepad"), wxDefaultPosition, wxDefaultSize,
|
||||||
wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN)
|
wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN)
|
||||||
{
|
, m_pad_id(pad)
|
||||||
m_pad_id = pad;
|
|
||||||
|
|
||||||
|
{
|
||||||
wxBoxSizer* gamepad_box = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* gamepad_box = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
wxArrayString choices;
|
wxArrayString choices;
|
||||||
|
|
|
@ -137,9 +137,9 @@ public:
|
||||||
GUID guidInstance;
|
GUID guidInstance;
|
||||||
DirectInputDevice(DeviceType type, IDirectInputDevice8* did, wchar_t* displayName, wchar_t* instanceID, wchar_t* productID, GUID guid)
|
DirectInputDevice(DeviceType type, IDirectInputDevice8* did, wchar_t* displayName, wchar_t* instanceID, wchar_t* productID, GUID guid)
|
||||||
: Device(DI, type, displayName, instanceID, productID)
|
: Device(DI, type, displayName, instanceID, productID)
|
||||||
|
, guidInstance(guid)
|
||||||
{
|
{
|
||||||
diEffects = 0;
|
diEffects = 0;
|
||||||
guidInstance = guid;
|
|
||||||
this->did = 0;
|
this->did = 0;
|
||||||
did->EnumEffects(EnumEffectsCallback, this, DIEFT_ALL);
|
did->EnumEffects(EnumEffectsCallback, this, DIEFT_ALL);
|
||||||
did->EnumObjects(EnumDeviceObjectsCallback, this, DIDFT_ALL);
|
did->EnumObjects(EnumDeviceObjectsCallback, this, DIDFT_ALL);
|
||||||
|
|
|
@ -18,14 +18,12 @@
|
||||||
#include "WndProcEater.h"
|
#include "WndProcEater.h"
|
||||||
|
|
||||||
WndProcEater::WndProcEater()
|
WndProcEater::WndProcEater()
|
||||||
|
: hWndEaten(0)
|
||||||
|
, eatenWndProc(0)
|
||||||
|
, extraProcs(0)
|
||||||
|
, numExtraProcs(0)
|
||||||
|
, hMutex(CreateMutex(0, 0, L"PAD"))
|
||||||
{
|
{
|
||||||
hWndEaten = 0;
|
|
||||||
eatenWndProc = 0;
|
|
||||||
|
|
||||||
extraProcs = 0;
|
|
||||||
numExtraProcs = 0;
|
|
||||||
|
|
||||||
hMutex = CreateMutex(0, 0, L"PAD");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WndProcEater::~WndProcEater() throw()
|
WndProcEater::~WndProcEater() throw()
|
||||||
|
|
Loading…
Reference in New Issue