Replace uses of .size() or .length() with .empty() when appropriate (#25950)

This commit is contained in:
matheusvb3 authored and GitHub committed 2026-02-05 13:14:12 +01:00
1 parent d237721e68
commit 416a005b88
28 files changed
+60 -60

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ namespace OpenRCT2::Http
{
// Ignore first header as that is the HTTP version which
// we don't really count as a header.
if (index != 0 && wKey.size() != 0)
if (index != 0 && !wKey.empty())
{
auto key = String::toUtf8(wKey);
auto value = String::toUtf8(wValue);