mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 20:59:17 +00:00
Make sure std::unique_ptr gets initialized.
(Fixes unit test failure.)
This commit is contained in:
parent
096cc7a5ad
commit
8238973bf4
@ -252,6 +252,11 @@ void BOARD::IncrementTimeStamp()
|
||||
m_CopperZoneRTreeCache.clear();
|
||||
m_CopperItemRTreeCache = std::make_unique<DRC_RTREE>();
|
||||
}
|
||||
else if( !m_CopperItemRTreeCache )
|
||||
{
|
||||
std::unique_lock<std::mutex> cacheLock( m_CachesMutex );
|
||||
m_CopperItemRTreeCache = std::make_unique<DRC_RTREE>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user