Silence Coverity.
This commit is contained in:
parent
5327ea5823
commit
a41f27a022
|
@ -1150,6 +1150,9 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject )
|
||||||
auto getSIValue =
|
auto getSIValue =
|
||||||
[]( T_field* aField )
|
[]( 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])" ) );
|
wxRegEx regex( wxT( "([^a-z])(M)(e|E)(g|G)($|[^a-z])" ) );
|
||||||
wxString value = aField->GetText();
|
wxString value = aField->GetText();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue