@@ -132,14 +132,15 @@ class SpecificDllLoader : public DllLoader {
132
132
return InitializeInternal (kDxCompilerLib , " DxcCreateInstance" );
133
133
}
134
134
135
- HRESULT OverrideDll (LPCSTR dll, LPCSTR entryPoint) {
135
+ HRESULT OverrideDll (LPCSTR dll, LPCSTR entryPoint) override {
136
136
return InitializeInternal (dll, entryPoint);
137
137
}
138
138
139
139
// Also bring visibility into the interface definition of this function
140
140
// which takes 2 args
141
141
using DllLoader::CreateInstanceImpl;
142
- HRESULT CreateInstanceImpl (REFCLSID clsid, REFIID riid, IUnknown **pResult) {
142
+ HRESULT CreateInstanceImpl (REFCLSID clsid, REFIID riid,
143
+ IUnknown **pResult) override {
143
144
if (pResult == nullptr )
144
145
return E_POINTER;
145
146
if (m_dll == nullptr )
@@ -152,7 +153,7 @@ class SpecificDllLoader : public DllLoader {
152
153
// which takes 3 args
153
154
using DllLoader::CreateInstance2Impl;
154
155
HRESULT CreateInstance2Impl (IMalloc *pMalloc, REFCLSID clsid, REFIID riid,
155
- IUnknown **pResult) {
156
+ IUnknown **pResult) override {
156
157
if (pResult == nullptr )
157
158
return E_POINTER;
158
159
if (m_dll == nullptr )
@@ -163,9 +164,9 @@ class SpecificDllLoader : public DllLoader {
163
164
return hr;
164
165
}
165
166
166
- bool HasCreateWithMalloc () const { return m_createFn2 != nullptr ; }
167
+ bool HasCreateWithMalloc () const override { return m_createFn2 != nullptr ; }
167
168
168
- bool IsEnabled () const { return m_dll != nullptr ; }
169
+ bool IsEnabled () const override { return m_dll != nullptr ; }
169
170
170
171
bool GetCreateInstanceProcs (DxcCreateInstanceProc *pCreateFn,
171
172
DxcCreateInstance2Proc *pCreateFn2) const {
@@ -189,7 +190,7 @@ class SpecificDllLoader : public DllLoader {
189
190
}
190
191
}
191
192
192
- HMODULE Detach () {
193
+ HMODULE Detach () override {
193
194
HMODULE hModule = m_dll;
194
195
m_dll = nullptr ;
195
196
return hModule;
0 commit comments