mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00: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
|
|
@ -95,7 +95,7 @@ bool ds3_pad_handler::Init()
|
|||
LOG_ERROR(HLE, "[DS3] Check https://wiki.rpcs3.net/index.php?title=Help:Controller_Configuration for intructions on how to solve this issue");
|
||||
#endif
|
||||
}
|
||||
else if (controllers.size() == 0)
|
||||
else if (controllers.empty())
|
||||
{
|
||||
LOG_WARNING(HLE, "[DS3] No controllers found!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue