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

Method QueryInterface

diff_ext_for_kdiff3/class_factory.cpp:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20STDMETHODIMP
21CLASS_FACTORY::QueryInterface(REFIID riid, void** ppv) {
22 HRESULT ret = E_NOINTERFACE;
23 *ppv = nullptr;
24
25 if(IsEqualIID(riid, IID_IUnknown) || IsEqualIID(riid, IID_IClassFactory)) {
26 *ppv = static_cast<CLASS_FACTORY*>(this);
27
28 AddRef();
29
30 ret = NOERROR;
31 }
32
33 return ret;
34}
35
36STDMETHODIMP_(ULONG)
37CLASS_FACTORY::AddRef() {

Callers 1

CreateInstanceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected