Elems clear should be private

This commit is contained in:
Marek Roszko
2025-02-25 18:03:26 -05:00
parent 71fdc9b199
commit 42e448dbf6
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ PROJECT::PROJECT() :
}
void PROJECT::ElemsClear()
void PROJECT::elemsClear()
{
// careful here, this should work, but the virtual destructor may not
// be in the same link image as PROJECT.
@@ -66,7 +66,7 @@ void PROJECT::ElemsClear()
PROJECT::~PROJECT()
{
ElemsClear();
elemsClear();
}
+6 -5
View File
@@ -267,11 +267,6 @@ public:
virtual _ELEM* GetElem( PROJECT::ELEM aIndex );
virtual void SetElem( PROJECT::ELEM aIndex, _ELEM* aElem );
/**
* Delete all the _ELEMs and set their pointers to NULL.
*/
virtual void ElemsClear();
/**
* Clear the _ELEMs and RSTRINGs.
*/
@@ -306,6 +301,12 @@ private:
friend class SETTINGS_MANAGER; // so that SM can set project path
friend class TEST_NETLISTS_FIXTURE; // TODO(JE) make this not required
/**
* Delete all the _ELEMs and set their pointers to NULL.
*/
virtual void elemsClear();
/**
* Set the full directory, basename, and extension of the project.
*