Merge pull request #58 from Demonese/fix-1

fix potential compile errors if strict mode (/permissive-) is enabled
This commit is contained in:
Adam Sawicki 2023-08-24 09:29:20 +02:00 committed by GitHub
commit a89a347536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1801,13 +1801,14 @@ int Main2(int argc, wchar_t** argv)
return (int)ExitCode::Help;
}
std::unique_ptr<DXGIUsage> DXGIUsage(new DXGIUsage());
DXGIUsage->Init();
g_DXGIUsage = DXGIUsage.get();
// variable name should not same as class name
std::unique_ptr<DXGIUsage> dxgiUsage = std::make_unique<DXGIUsage>();
dxgiUsage->Init();
g_DXGIUsage = dxgiUsage.get();
if(g_CommandLineParameters.m_List)
{
DXGIUsage->PrintAdapterList();
dxgiUsage->PrintAdapterList();
return (int)ExitCode::GPUList;
}