A bunch of other minor issues reported by PVS-Studio

This commit is contained in:
Tim Wojtulewicz 2023-01-14 16:35:49 -07:00
parent 53f2364a86
commit 35ee96c4cb
7 changed files with 15 additions and 11 deletions

View file

@ -630,7 +630,7 @@ Plugin* Manager::LookupPluginByPath(std::string_view _path)
static bool hook_cmp(std::pair<int, Plugin*> a, std::pair<int, Plugin*> b)
{
if ( a.first == b.first )
return util::strtolower(a.second->Name()) < util::strtolower(a.second->Name());
return util::strtolower(a.second->Name()) < util::strtolower(b.second->Name());
// Reverse sort.
return a.first > b.first;