Avoid intermittent compiler crash in GCC 7.4
Somehow the previous way this statement was written can cause an internal compiler crash on gcc 7.4.0-1ubuntu1~18.04.1 sometimes.
This commit is contained in:
parent
68be5fc1f4
commit
41f59ab873
|
@ -175,8 +175,8 @@ int BACK_ANNOTATE::getPcbModulesFromString( const std::string& aPayload )
|
||||||
{
|
{
|
||||||
// Add module to the map
|
// Add module to the map
|
||||||
PCB_MODULE_DATA data( ref, footprint, value );
|
PCB_MODULE_DATA data( ref, footprint, value );
|
||||||
m_pcbModules.insert( nearestItem, decltype( PCB_MODULES_MAP::value_type() )( path,
|
m_pcbModules.insert( nearestItem,
|
||||||
std::make_shared<PCB_MODULE_DATA>( data ) ) );
|
std::make_pair( path, std::make_shared<PCB_MODULE_DATA>( data ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return errors;
|
return errors;
|
||||||
|
|
Loading…
Reference in New Issue