Skip to content

Commit

Permalink
Remove auto keyword
Browse files Browse the repository at this point in the history
Add missing braces
  • Loading branch information
darksylinc committed Nov 21, 2024
1 parent 759d2f8 commit 6d6f8b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RenderSystems/Vulkan/src/OgreVulkanDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,16 @@ namespace Ogre
//-------------------------------------------------------------------------
void VulkanDevice::createPhysicalDevice( const String &deviceName )
{
const auto& devices = mRenderSystem->getVulkanPhysicalDevices();
const VulkanPhysicalDeviceList &devices = mRenderSystem->getVulkanPhysicalDevices();
size_t deviceIdx = 0;
for( size_t i = 0; i < devices.size(); ++i )
{
if( devices[i].title == deviceName )
{
deviceIdx = i;
break;
}
}

LogManager::getSingleton().logMessage( "Vulkan: Requested \"" + deviceName + "\", selected \"" +
devices[deviceIdx].title + "\"" );
Expand Down

0 comments on commit 6d6f8b1

Please sign in to comment.