Explicitly cast size_t to int to suppress MSVC warnings.

Implicit size_t-to-int conversions provoke warnings when building 64 bit
version (in which sizeof(size_t) > sizeof(int)) with MSVC, so make them
explicit as the size_t values used here will always fit in int range.

Closes #14113.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-03-19 12:53:21 +00:00
parent 148d83b59f
commit 9de49b112f
3 changed files with 6 additions and 3 deletions

View File

@@ -564,7 +564,7 @@ public:
// helpers
size_t GetItemCount() const { return m_choices.GetCount(); }
const wxString& GetLabel( size_t ind ) const
{ return m_choices.GetLabel(ind); }
{ return m_choices.GetLabel(static_cast<int>(ind)); }
protected:
// Used to detect if choices have been changed