mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RegressionTests: Fix performance issues related to DockManager::restoreState
* Performance: Disable DockManager::restoreState when running regression tests * Set parent to Qt widgets to avoid memory leak * Change singleton pattern to avoid memory leak
This commit is contained in:
@@ -54,8 +54,9 @@ bool is_region_to_region( const std::string& keyword )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuSummaryQuantityNameInfoProvider* RiuSummaryQuantityNameInfoProvider::instance()
|
||||
{
|
||||
static auto* singleton = new RiuSummaryQuantityNameInfoProvider;
|
||||
return singleton;
|
||||
static RiuSummaryQuantityNameInfoProvider theInstance;
|
||||
|
||||
return &theInstance;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user