MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / copyTo

Method copyTo

forms/form.cpp:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44void Form::unloadResources() { Control::unloadResources(); }
45
46sp<Control> Form::copyTo(sp<Control> CopyParent)
47{
48 sp<Form> copy;
49 if (CopyParent)
50 {
51 copy = CopyParent->createChild<Form>();
52 }
53 else
54 {
55 copy = mksp<Form>();
56 }
57 copyControlData(copy);
58 return copy;
59}
60
61sp<Form> Form::loadForm(const UString &path)
62{

Callers 3

eventOccuredMethod · 0.45
beginMethod · 0.45
getFormMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected