Correct false comments (no functional changes).

This commit is contained in:
Jeff Young 2023-08-18 22:15:33 +01:00
parent 6c9ba52f18
commit 57d3aef4cd
1 changed files with 8 additions and 5 deletions

View File

@ -56,15 +56,16 @@ SCHEMATIC::~SCHEMATIC()
void SCHEMATIC::Reset()
{
// Assume project already saved
if( m_project )
{
PROJECT_FILE& project = m_project->GetProjectFile();
// d'tor will save settings to file
delete project.m_ErcSettings;
delete project.m_SchematicSettings;
project.m_ErcSettings = nullptr;
// d'tor will save settings to file
delete project.m_SchematicSettings;
project.m_SchematicSettings = nullptr;
m_project = nullptr; // clear the project, so we don't do this again when setting a new one
@ -85,10 +86,12 @@ void SCHEMATIC::SetProject( PROJECT* aPrj )
{
PROJECT_FILE& project = m_project->GetProjectFile();
// d'tor will save settings to file
delete project.m_ErcSettings;
delete project.m_SchematicSettings;
project.m_ErcSettings = nullptr;
// d'tor will save settings to file
delete project.m_SchematicSettings;
project.m_SchematicSettings = nullptr;
}