2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-03 10:35:51 +00:00

hecl/hecl: Convert std::string/std::wstring to views

Gets rid of two static constructors.
This commit is contained in:
Lioncash 2019-08-24 15:23:54 -04:00
parent d39caf54bb
commit 5e98cb139a

View File

@ -24,7 +24,7 @@ namespace hecl {
unsigned VerbosityLevel = 0;
bool GuiMode = false;
logvisor::Module LogModule("hecl");
static const std::string Illegals{"<>?\""};
constexpr std::string_view Illegals{"<>?\""};
void SanitizePath(std::string& path) {
if (path.empty())
@ -54,7 +54,7 @@ void SanitizePath(std::string& path) {
path.pop_back();
}
static const std::wstring WIllegals{L"<>?\""};
constexpr std::wstring_view WIllegals{L"<>?\""};
void SanitizePath(std::wstring& path) {
if (path.empty())