]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW.
[wxWidgets.git] / include / wx / list.h
index ed34130a165d7088be2ea91e421ffa01a9621025..7a96c251525a8c685342a1072d7a3c0d5ff85c17 100644 (file)
@@ -218,7 +218,7 @@ inline const void *wxListCastElementToVoidPtr(const wxString& str)
             }                                                                 \
             int IndexOf() const                                               \
             {                                                                 \
             }                                                                 \
             int IndexOf() const                                               \
             {                                                                 \
-                return *this ? std::distance( m_list->begin(), m_iter )       \
+                return *this ? (int)std::distance( m_list->begin(), m_iter )  \
                              : wxNOT_FOUND;                                   \
             }                                                                 \
         };                                                                    \
                              : wxNOT_FOUND;                                   \
             }                                                                 \
         };                                                                    \