]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/joystick.cpp
indicate whether this is a selection or a deselection in wxCommandEvent generated...
[wxWidgets.git] / src / msw / joystick.cpp
index 1faaa0caf6e1ca60113f56b2c903f1bc1ac472bb..1cfed858425806de013c72b0f8b81676f25ed7e5 100644 (file)
@@ -306,7 +306,7 @@ wxString wxJoystick::GetProductName() const
 {
     JOYCAPS joyCaps;
     if (joyGetDevCaps(m_joystick, & joyCaps, sizeof(JOYCAPS)) != JOYERR_NOERROR)
 {
     JOYCAPS joyCaps;
     if (joyGetDevCaps(m_joystick, & joyCaps, sizeof(JOYCAPS)) != JOYERR_NOERROR)
-        return wxString("");
+        return wxEmptyString;
     else
         return wxString(joyCaps.szPname);
 }
     else
         return wxString(joyCaps.szPname);
 }