MCPcopy Create free account
hub / github.com/KDAB/GammaRay / copy

Method copy

core/objectinstance.cpp:164–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void ObjectInstance::copy(const ObjectInstance &other)
165{
166 m_obj = other.m_obj;
167 m_qtObj = other.m_qtObj.data();
168 m_variant = other.m_variant;
169 m_metaObj = other.m_metaObj;
170 m_typeName = other.m_typeName;
171 m_type = other.m_type;
172
173 if (m_type == Value || m_type == QtGadgetPointer)
174 unpackVariant(); // pointer changes when copying the variant
175}
176
177void ObjectInstance::unpackVariant()
178{

Callers 3

packageMethod · 0.80
analyzeImageFlawsMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected