Added ownership functionality and made the thing non-copyable
This commit is contained in:
parent
49ee190e10
commit
570397e89e
2 changed files with 34 additions and 0 deletions
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
||||
void removeComment(string& str, string comment)
|
||||
{
|
||||
string::size_type pos = str.find(comment);
|
||||
|
|
@ -41,6 +43,14 @@ bool is_section(const string& str, string& name)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
eoState::~eoState(void)
|
||||
{
|
||||
for (unsigned i = 0; i < ownedObjects.size(); ++i)
|
||||
{
|
||||
delete ownedObjects[i];
|
||||
}
|
||||
}
|
||||
|
||||
void eoState::registerObject(eoPersistent& registrant)
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue