const KstTimezone *KstTimezones::zone(const QString &name) { if (name.isEmpty()) return m_UTC; ZoneMap::ConstIterator it = m_zones->find(name); if (it != m_zones->end()) return it.data(); // Error. return 0; }
KstTimezones::~KstTimezones() { // FIXME when needed: // delete d; // Autodelete behavior. if (m_zones) { for (ZoneMap::ConstIterator it = m_zones->begin(); it != m_zones->end(); ++it) { delete it.data(); } } delete m_zones; }