Fix lots of warnings reported by Clang.
Mostly potentially lossy implicit conversions in headers (long->int). Also dangling else warnings. Struct/class mismatches. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -218,7 +218,7 @@ inline const void *wxListCastElementToVoidPtr(const wxString& str)
|
||||
} \
|
||||
int IndexOf() const \
|
||||
{ \
|
||||
return *this ? std::distance( m_list->begin(), m_iter ) \
|
||||
return *this ? (int)std::distance( m_list->begin(), m_iter ) \
|
||||
: wxNOT_FOUND; \
|
||||
} \
|
||||
}; \
|
||||
|
Reference in New Issue
Block a user