mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-03-30 06:16:56 +00:00
Elems clear should be private
This commit is contained in:
parent
71fdc9b199
commit
42e448dbf6
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user