Skip to content

Commit

Permalink
fix for lifetime violation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-rsm-McKenzie committed Feb 8, 2025
1 parent afc11e3 commit 2c7280d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/src/bsa/fo4.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,19 +631,14 @@ TEST_CASE("bsa::fo4::archive", "[src][fo4][archive]")

for (const auto [format, format_str] : formats) {
for (const auto version : versions) {
std::span<const std::string_view> files;
std::vector<std::string_view> files;
switch (format) {
case bsa::fo4::format::general:
{
constexpr std::array a = { "License.txt"sv, "SampleA.png"sv };
files = std::span(a);
}
files.push_back("License.txt"sv);
files.push_back("SampleA.png"sv);
break;
case bsa::fo4::format::directx:
{
constexpr std::array a = { "Fence006_1K_Roughness.dds"sv };
files = std::span(a);
}
files.push_back("Fence006_1K_Roughness.dds"sv);
break;
default:
REQUIRE(false);
Expand Down

0 comments on commit 2c7280d

Please sign in to comment.