Skip to content

Commit 7f7dc30

Browse files
chore: autopublish 2025-06-06T00:27:21Z
1 parent c527502 commit 7f7dc30

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

include/dxc/Support/dxcapi.use.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
#define __DXCAPI_USE_H__
1414

1515
#include "dxc/dxcapi.h"
16-
#include <cstdlib> // for getenv
17-
#include <string>
18-
#include <filesystem> // C++17 and later
16+
#include <cstdlib> // for getenv
1917
#include <dxc/Support/Global.h> // for hresult handling with DXC_FAILED
18+
#include <filesystem> // C++17 and later
19+
#include <string>
2020

2121
namespace dxc {
2222

@@ -122,7 +122,7 @@ class DxcDllSupport {
122122
}
123123

124124
HRESULT virtual CreateInstance2(IMalloc *pMalloc, REFCLSID clsid, REFIID riid,
125-
IUnknown **pResult) {
125+
IUnknown **pResult) {
126126
if (pResult == nullptr)
127127
return E_POINTER;
128128
if (m_dll == nullptr)
@@ -139,9 +139,8 @@ class DxcDllSupport {
139139

140140
bool GetCreateInstanceProcs(DxcCreateInstanceProc *pCreateFn,
141141
DxcCreateInstance2Proc *pCreateFn2) const {
142-
if (pCreateFn == nullptr || pCreateFn2 == nullptr ||
143-
m_createFn == nullptr)
144-
return false;
142+
if (pCreateFn == nullptr || pCreateFn2 == nullptr || m_createFn == nullptr)
143+
return false;
145144
*pCreateFn = m_createFn;
146145
*pCreateFn2 = m_createFn2;
147146
return true;

0 commit comments

Comments
 (0)