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:
parent
d39caf54bb
commit
5e98cb139a
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user