// The m_combo->SetValue() call above sets m_value to the index of this
// string. But if there are more identical string, the index is of the
- // first occurence, which may be wrong, so set the index explicitly here,
+ // first occurrence, which may be wrong, so set the index explicitly here,
// _after_ the SetValue() call.
m_value = value;
// Find initial selection
wxString strValue = m_combo->GetValue();
- if ( strValue.length() )
+ if ( !strValue.empty() )
m_value = m_strings.Index(strValue);
}
long style,
const wxValidator& validator,
const wxString& name)
- : wxComboCtrl()
{
Init();