X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/131f9d9b19b6b7943b24601fc813ceaa2c57340e..974d9c98f06a22ac866cf54bb11015005ac14215:/src/msw/joystick.cpp?ds=sidebyside diff --git a/src/msw/joystick.cpp b/src/msw/joystick.cpp index b3c1369e2c..1cfed85842 100644 --- a/src/msw/joystick.cpp +++ b/src/msw/joystick.cpp @@ -57,7 +57,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) joysticks, counting from the first available and upwards. */ -wxJoystick::wxJoystick(int joystick = wxJOYSTICK1) +wxJoystick::wxJoystick(int joystick) { JOYINFO joyInfo; int i, maxsticks; @@ -306,7 +306,7 @@ wxString wxJoystick::GetProductName() const { JOYCAPS joyCaps; if (joyGetDevCaps(m_joystick, & joyCaps, sizeof(JOYCAPS)) != JOYERR_NOERROR) - return wxString(""); + return wxEmptyString; else return wxString(joyCaps.szPname); }