Avoid -Wsign-compare warnings
This commit is contained in:
parent
eafa248117
commit
511c537362
2 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ void wxChoice::DoDeleteOneItem(unsigned int n)
|
|||
|
||||
// Deselect item being removed
|
||||
int selIdx = GetSelection();
|
||||
if ( selIdx != -1 && selIdx == n )
|
||||
if ( selIdx != -1 && selIdx == int(n) )
|
||||
SetSelection(-1);
|
||||
|
||||
dynamic_cast<wxChoiceWidgetImpl*>(GetPeer())->RemoveItem(n);
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ void wxComboBox::SetString(unsigned int n, const wxString& s)
|
|||
GetComboPeer()->InsertItem(n, s);
|
||||
// When selected item is removed its selection is invalidated
|
||||
// so we need to re-select it manually.
|
||||
if ( sel == n )
|
||||
if ( sel == int(n) )
|
||||
{
|
||||
SetSelection(n);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue