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

Method copyTo

forms/control.cpp:1016–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016sp<Control> Control::copyTo(sp<Control> CopyParent)
1017{
1018 sp<Control> copy;
1019 if (CopyParent)
1020 {
1021 copy = CopyParent->createChild<Control>(takesFocus);
1022 }
1023 else
1024 {
1025 copy = mksp<Control>(takesFocus);
1026 }
1027 copyControlData(copy);
1028 return copy;
1029}
1030
1031void Control::copyControlData(sp<Control> CopyOf)
1032{

Callers 1

copyControlDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected