Silence Coverity.

This commit is contained in:
Jeff Young 2022-12-15 18:14:19 +00:00
parent 5327ea5823
commit a41f27a022
1 changed files with 3 additions and 0 deletions

View File

@ -1150,6 +1150,9 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject )
auto getSIValue =
[]( T_field* aField )
{
if( !aField ) // no, not really, but it keeps Coverity happy
return wxString( wxEmptyString );
wxRegEx regex( wxT( "([^a-z])(M)(e|E)(g|G)($|[^a-z])" ) );
wxString value = aField->GetText();