diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-05-18 02:12:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-18 02:12:45 -0500 |
| commit | 2e22a3cf425caae0a3cb52cc4deca7008209955f (patch) | |
| tree | 558307be915d9708eaae615380e187044d0dd83d /Source/UnitTests/Core | |
| parent | 88005deaeb26c3bcb4205ca08f93bfdc3b9088db (diff) | |
| parent | 2102108b1a62c0e30f86e2ceada7d8be03603923 (diff) | |
Merge pull request #13672 from tygyh/UnitTests/Remove-redundant-template-type-specifiers
UnitTests: Remove redundant template type specifers
Diffstat (limited to 'Source/UnitTests/Core')
| -rw-r--r-- | Source/UnitTests/Core/IOS/ES/FormatsTest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/UnitTests/Core/IOS/ES/FormatsTest.cpp b/Source/UnitTests/Core/IOS/ES/FormatsTest.cpp index 56ad5beff1..228dbfa8cb 100644 --- a/Source/UnitTests/Core/IOS/ES/FormatsTest.cpp +++ b/Source/UnitTests/Core/IOS/ES/FormatsTest.cpp @@ -31,13 +31,13 @@ TEST(TMDReader, Validity) tmd = IOS::ES::TMDReader{{1, 2, 3}}; EXPECT_FALSE(tmd.IsValid()) << "IsValid should be false when reading an invalid TMD"; - tmd = IOS::ES::TMDReader{std::vector<u8>(soup01_tmd.cbegin(), soup01_tmd.cend() - 1)}; + tmd = IOS::ES::TMDReader{std::vector(soup01_tmd.cbegin(), soup01_tmd.cend() - 1)}; EXPECT_FALSE(tmd.IsValid()) << "IsValid should be false when reading an invalid TMD"; - tmd = IOS::ES::TMDReader{std::vector<u8>(soup01_tmd.cbegin(), soup01_tmd.cend())}; + tmd = IOS::ES::TMDReader{std::vector(soup01_tmd.cbegin(), soup01_tmd.cend())}; EXPECT_TRUE(tmd.IsValid()) << "IsValid should be true when reading a valid TMD"; - tmd = IOS::ES::TMDReader{std::vector<u8>(ios59_tmd.cbegin(), ios59_tmd.cend())}; + tmd = IOS::ES::TMDReader{std::vector(ios59_tmd.cbegin(), ios59_tmd.cend())}; EXPECT_TRUE(tmd.IsValid()) << "IsValid should be true when reading a valid TMD"; } @@ -91,7 +91,7 @@ class GameTMDReaderTest : public TMDReaderTest protected: void SetUp() override { - m_raw_tmd = std::vector<u8>(soup01_tmd.cbegin(), soup01_tmd.cend()); + m_raw_tmd = std::vector(soup01_tmd.cbegin(), soup01_tmd.cend()); TMDReaderTest::SetUp(); } u64 GetTitleId() const override { return 0x00010000534f5550; } @@ -99,7 +99,7 @@ protected: std::string GetGameID() const override { return "SOUP01"; } std::vector<u8> GetRawView() const override { - return std::vector<u8>(soup01_tmd_view.cbegin(), soup01_tmd_view.cend()); + return std::vector(soup01_tmd_view.cbegin(), soup01_tmd_view.cend()); } }; @@ -150,7 +150,7 @@ class IOSTMDReaderTest : public TMDReaderTest protected: void SetUp() override { - m_raw_tmd = std::vector<u8>(ios59_tmd.cbegin(), ios59_tmd.cend()); + m_raw_tmd = std::vector(ios59_tmd.cbegin(), ios59_tmd.cend()); TMDReaderTest::SetUp(); } u64 GetTitleId() const override { return 0x000000010000003b; } @@ -158,7 +158,7 @@ protected: std::string GetGameID() const override { return "000000010000003b"; } std::vector<u8> GetRawView() const override { - return std::vector<u8>(ios59_tmd_view.cbegin(), ios59_tmd_view.cend()); + return std::vector(ios59_tmd_view.cbegin(), ios59_tmd_view.cend()); } }; |
