Fix a crash in debug mode

The assert for spinner getStringValue not returning empty is unnecessary.
This commit is contained in:
Alayan 2024-05-28 19:07:29 +02:00
parent 66a85d8bf7
commit 7320f2e70d
No known key found for this signature in database

View File

@ -458,11 +458,7 @@ stringw SpinnerWidget::getStringValue() const
stringw text = StringUtils::insertValues(m_text.c_str(), m_value); stringw text = StringUtils::insertValues(m_text.c_str(), m_value);
return text; return text;
} }
else // This can happen if the spinner has not been initialized yet.
{
assert(false);
}
/** To avoid compiler warnings about missing return statements. */
return ""; return "";
} }