mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Use empty() instead of comparing size() with 0
Recommendation from Clang-Tidy: https://clang.llvm.org/extra/clang-tidy/checks/readability-container-size-empty.html
This commit is contained in:
parent
bf557ea6e6
commit
09c9996f31
23 changed files with 33 additions and 33 deletions
|
@ -155,7 +155,7 @@ emu_settings::Render_Creator::Render_Creator()
|
|||
device_enum_context.makeCurrentInstance(instance_handle);
|
||||
std::vector<vk::physical_device>& gpus = device_enum_context.enumerateDevices();
|
||||
|
||||
if (gpus.size() > 0)
|
||||
if (!gpus.empty())
|
||||
{
|
||||
//A device with vulkan support found. Init data
|
||||
supportsVulkan = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue