From c907d8b273584f0c7eb24b44a249595ec1b3d999 Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Sat, 20 Jan 2024 16:46:49 +0100 Subject: [PATCH] Inspection: Functional-style cast is used instead of a C++ cast --- tests/test_flacpicture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_flacpicture.cpp b/tests/test_flacpicture.cpp index 8cfb7b91..510cea89 100644 --- a/tests/test_flacpicture.cpp +++ b/tests/test_flacpicture.cpp @@ -53,7 +53,7 @@ public: FLAC::Picture pic(ByteVector(pdata, 199)); - CPPUNIT_ASSERT_EQUAL(3, int(pic.type())); + CPPUNIT_ASSERT_EQUAL(3, static_cast(pic.type())); CPPUNIT_ASSERT_EQUAL(1, pic.width()); CPPUNIT_ASSERT_EQUAL(1, pic.height()); CPPUNIT_ASSERT_EQUAL(24, pic.colorDepth());