From 1e4aed87006153adb898a285cbd6091feb096527 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 20 Sep 2023 16:59:32 -0600 Subject: [PATCH] Fix clang-tidy `readability-container-size-empty` warnings --- test/System/String.test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/System/String.test.cpp b/test/System/String.test.cpp index 01813c03a..61530ea80 100644 --- a/test/System/String.test.cpp +++ b/test/System/String.test.cpp @@ -75,10 +75,10 @@ TEST_CASE("[System] sf::String") SECTION("Default constructor") { const sf::String string; - CHECK(std::string(string) == ""s); - CHECK(std::wstring(string) == L""s); - CHECK(string.toAnsiString() == ""s); - CHECK(string.toWideString() == L""s); + CHECK(std::string(string).empty()); + CHECK(std::wstring(string).empty()); + CHECK(string.toAnsiString().empty()); + CHECK(string.toWideString().empty()); CHECK(string.toUtf8().empty()); CHECK(string.toUtf16().empty()); CHECK(string.toUtf32().empty());