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:
@@ -1,6 +1,7 @@
|
|||||||
/* headerwriter.cpp - Copyright (C) 2015-2024 a dinosaur (zlib, see COPYING.txt) */
|
/* headerwriter.cpp - Copyright (C) 2015-2024 a dinosaur (zlib, see COPYING.txt) */
|
||||||
|
|
||||||
#include "headerwriter.hpp"
|
#include "headerwriter.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
||||||
template <typename T> static constexpr std::string_view DatType();
|
template <typename T> static constexpr std::string_view DatType();
|
||||||
|
|||||||
@@ -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;
|
std::string out;
|
||||||
out.reserve(ident.length());
|
out.reserve(ident.length());
|
||||||
@@ -203,7 +203,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get name from file
|
// 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
|
// Open output files
|
||||||
SWriter outS;
|
SWriter outS;
|
||||||
|
|||||||
Reference in New Issue
Block a user