From 3ebc346bcb53635ac955e7c58de1095191415bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 15 Jul 2025 14:41:56 +0200 Subject: [PATCH] Fix Clang-Tidy's readability-static-accessed-through-instance in tests --- tests/SelfTest/IntrospectiveTests/ToString.tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp b/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp index e1904606..60fafc80 100644 --- a/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp @@ -103,15 +103,15 @@ TEST_CASE( "#2944 - Stringifying dates before 1970 should not crash", "[.approva using Catch::Matchers::Equals; using Days = std::chrono::duration>; using SysDays = std::chrono::time_point; - Catch::StringMaker sm; + using SM = Catch::StringMaker; // Check simple date first const SysDays post1970{ Days{ 1 } }; - auto converted_post = sm.convert( post1970 ); + auto converted_post = SM::convert( post1970 ); REQUIRE( converted_post == "1970-01-02T00:00:00Z" ); const SysDays pre1970{ Days{ -1 } }; - auto converted_pre = sm.convert( pre1970 ); + auto converted_pre = SM::convert( pre1970 ); REQUIRE_THAT( converted_pre, Equals( "1969-12-31T00:00:00Z" ) ||