JucerDocument* ComponentDocument::createCopy()
{
    ComponentDocument* newOne = new ComponentDocument (cpp);

    newOne->resources = resources;

    std::unique_ptr<XmlElement> xml (createXml());
    newOne->loadFromXml (*xml);

    return newOne;
}
Example #2
0
JucerDocument* ComponentDocument::createCopy()
{
    ComponentDocument* newOne = new ComponentDocument (cpp);

    newOne->resources = resources;

    ScopedPointer<XmlElement> xml (createXml());
    newOne->loadFromXml (*xml);

    return newOne;
}