/** * Insert a year into the year list * @param the year to insert * @return true if a year of that key wasn't already in the list */ bool Municipality::addYear(Year &year) { if(!_years->contains(year.name())){ _years->insert(year.name(),year); return true; } return false; }