MCPcopy Create free account
hub / github.com/KDE/kdiff3 / CreateInstance

Method CreateInstance

diff_ext_for_kdiff3/class_factory.cpp:53–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53STDMETHODIMP
54CLASS_FACTORY::CreateInstance(IUnknown* outer, REFIID refiid, void** obj) {
55 HRESULT ret = CLASS_E_NOAGGREGATION;
56 *obj = nullptr;
57
58 // Shell extensions typically don't support aggregation (inheritance)
59 if(outer == nullptr) {
60 DIFF_EXT* ext = new DIFF_EXT();
61
62 if(ext == nullptr)
63 ret = E_OUTOFMEMORY;
64 else
65 ret = ext->QueryInterface(refiid, obj);
66 }
67
68 return ret;
69}
70
71STDMETHODIMP
72CLASS_FACTORY::LockServer(BOOL) {

Callers

nothing calls this directly

Calls 1

QueryInterfaceMethod · 0.45

Tested by

no test coverage detected