const ProjectType* ProjectType::findType (const String& typeCode) { const Array<ProjectType*>& types = getAllTypes(); for (int i = types.size(); --i >= 0;) if (types.getUnchecked(i)->getType() == typeCode) return types.getUnchecked(i); jassertfalse; return nullptr; }
//============================================================================== ProjectType::ProjectType (const String& t, const String& d) : type (t), desc (d) { getAllTypes().add (this); }
ProjectType::~ProjectType() { getAllTypes().removeFirstMatchingValue (this); }
//============================================================================== ProjectType::ProjectType (const String& type_, const String& desc_) : type (type_), desc (desc_) { getAllTypes().add (this); }