]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/joystick.cpp
don't use GetSelectedInto() in release build
[wxWidgets.git] / src / msw / joystick.cpp
index b3c1369e2c67019b0105ba26c26687da0f3679e2..1cfed858425806de013c72b0f8b81676f25ed7e5 100644 (file)
@@ -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);
 }