JucerDocument* ComponentDocument::createCopy() { ComponentDocument* newOne = new ComponentDocument (cpp); newOne->resources = resources; std::unique_ptr<XmlElement> xml (createXml()); newOne->loadFromXml (*xml); return newOne; }
JucerDocument* ComponentDocument::createCopy() { ComponentDocument* newOne = new ComponentDocument (cpp); newOne->resources = resources; ScopedPointer<XmlElement> xml (createXml()); newOne->loadFromXml (*xml); return newOne; }