diff options
| author | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2026-02-01 09:20:46 +0100 |
|---|---|---|
| committer | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2026-03-23 23:55:09 +0100 |
| commit | f6a67aa6e722350db3fc778e4f881cb60090faa1 (patch) | |
| tree | f35cbb126c72e04cc9032aa55453cfa0edcf7a97 /Source/UnitTests | |
| parent | c05b231015375a88ecb4c4eea69862c8c75b809c (diff) | |
Use more std::span arguments
Diffstat (limited to 'Source/UnitTests')
| -rw-r--r-- | Source/UnitTests/Core/DSP/DSPAssemblyTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/UnitTests/Core/DSP/DSPAssemblyTest.cpp b/Source/UnitTests/Core/DSP/DSPAssemblyTest.cpp index 44e4cde30e..5335452588 100644 --- a/Source/UnitTests/Core/DSP/DSPAssemblyTest.cpp +++ b/Source/UnitTests/Core/DSP/DSPAssemblyTest.cpp @@ -13,7 +13,7 @@ #include <gtest/gtest.h> -static bool RoundTrippableDisassemble(const std::vector<u16>& code, std::string& text) +static bool RoundTrippableDisassemble(std::span<const u16> code, std::string& text) { DSP::AssemblerSettings settings; settings.ext_separator = '\''; @@ -29,7 +29,7 @@ static bool RoundTrippableDisassemble(const std::vector<u16>& code, std::string& // This test goes from text ASM to binary to text ASM and once again back to binary. // Then the two binaries are compared. -static bool RoundTrip(const std::vector<u16>& code1) +static bool RoundTrip(std::span<const u16> code1) { std::vector<u16> code2; std::string text; @@ -90,7 +90,7 @@ static bool SuperTrip(const char* asm_code) } // Assembles asm_code, and verifies that it matches code1. -static bool AssembleAndCompare(const char* asm_code, const std::vector<u16>& code1) +static bool AssembleAndCompare(const char* asm_code, std::span<const u16> code1) { std::vector<u16> code2; if (!DSP::Assemble(asm_code, code2)) |
