1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

Fix build errors on MSVC from sanitisation commit

This commit is contained in:
2024-03-25 15:51:42 +11:00
parent 73b5d44b46
commit 78997a9529
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
/* headerwriter.cpp - Copyright (C) 2015-2024 a dinosaur (zlib, see COPYING.txt) */
#include "headerwriter.hpp"
#include <algorithm>
template <typename T> static constexpr std::string_view DatType();

View File

@@ -116,7 +116,7 @@ static bool ParseArgs(int argc, char** argv, Arguments& params)
}
static std::string SanitiseLabel(const std::string& ident)
static std::string SanitiseLabel(const std::string_view ident)
{
std::string out;
out.reserve(ident.length());
@@ -203,7 +203,7 @@ int main(int argc, char** argv)
}
// Get name from file
std::string name = SanitiseLabel(std::filesystem::path(p.outPath).stem());
std::string name = SanitiseLabel(std::filesystem::path(p.outPath).stem().string());
// Open output files
SWriter outS;