Codechange: Prefer string equality instead of comparison. (#14727)
This commit is contained in:
@@ -574,7 +574,7 @@ static void MaxVehiclesChanged(int32_t)
|
||||
*/
|
||||
static bool ReplaceAsteriskWithEmptyPassword(std::string &newval)
|
||||
{
|
||||
if (newval.compare("*") == 0) newval.clear();
|
||||
if (newval == "*") newval.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user