Fix a crash in debug mode
The assert for spinner getStringValue not returning empty is unnecessary.
This commit is contained in:
parent
66a85d8bf7
commit
7320f2e70d
@ -458,11 +458,7 @@ stringw SpinnerWidget::getStringValue() const
|
||||
stringw text = StringUtils::insertValues(m_text.c_str(), m_value);
|
||||
return text;
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
/** To avoid compiler warnings about missing return statements. */
|
||||
// This can happen if the spinner has not been initialized yet.
|
||||
return "";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user