KissCount/model/User.cpp

22 lines
368 B
C++
Raw Normal View History

2010-05-15 11:21:42 +02:00
#include "User.h"
User::~User()
{
std::map<unsigned int, std::map<unsigned int, std::list<operation> >* >::iterator it;
while (!_accounts.empty())
{
delete _accounts.front();
_accounts.pop_front();
}
for (it = _operations.begin(); it != _operations.end(); it++)
{
if (_operations[it->first])
{
delete it->second;
}
}
}