MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / createCopy

Method createCopy

src/app/cmd/set_cel_data.cpp:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void SetCelData::createCopy()
80{
81 auto cel = this->cel();
82
83 ASSERT(!m_dataCopy);
84 m_dataCopy.reset(new CelData(*cel->data()));
85 m_dataCopy->setImage(ImageRef(Image::createCopy(cel->image())));
86}
87
88} // namespace cmd
89} // namespace app

Callers

nothing calls this directly

Calls 5

celMethod · 0.45
resetMethod · 0.45
dataMethod · 0.45
setImageMethod · 0.45
imageMethod · 0.45

Tested by

no test coverage detected