Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@@ -37,8 +37,9 @@ namespace {
template <class T>
std::shared_ptr<T> to_com_ptr(T* obj) {
return std::shared_ptr<T>(obj, [](T* p) {
if (p)
if (p) {
p->Release();
}
});
}
@@ -695,8 +696,9 @@ std::shared_ptr<ID3DBlob> Device::compile_shader(const std::string& source_code,
}
return std::shared_ptr<ID3DBlob>(blob, [](ID3DBlob* p) {
if (p)
if (p) {
p->Release();
}
});
}