diff --git a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp index d476c67ca7..3752ecb0c6 100644 --- a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp @@ -430,7 +430,7 @@ std::string VertexProgramDecompiler::Decompile() m_instructions[i].reset(); } - if (m_prog.jump_table.size()) + if (!m_prog.jump_table.empty()) { last_label_addr = *m_prog.jump_table.rbegin(); } diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index b7acbd45df..d26b318f02 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -3022,7 +3022,7 @@ namespace rsx void do_update() { - if (m_flush_always_cache.size()) + if (!m_flush_always_cache.empty()) { if (m_cache_update_tag.load(std::memory_order_consume) != m_flush_always_update_timestamp) { diff --git a/rpcs3/Emu/RSX/Overlays/overlay_save_dialog.cpp b/rpcs3/Emu/RSX/Overlays/overlay_save_dialog.cpp index 1053cc0807..c000ceedbe 100644 --- a/rpcs3/Emu/RSX/Overlays/overlay_save_dialog.cpp +++ b/rpcs3/Emu/RSX/Overlays/overlay_save_dialog.cpp @@ -15,7 +15,7 @@ namespace rsx { static_cast(image.get())->set_image_resource(resource_id); } - else if (icon_buf.size()) + else if (!icon_buf.empty()) { image->set_padding(0, 0, 11, 11); // Half sized icon, 320x176->160x88 icon_data = std::make_unique(icon_buf); @@ -228,7 +228,7 @@ namespace rsx } } - if (!m_list->m_items.size()) + if (m_list->m_items.empty()) { m_no_saves_text = std::make_unique