mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-03 15:15:53 +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;
|
unsigned VerbosityLevel = 0;
|
||||||
bool GuiMode = false;
|
bool GuiMode = false;
|
||||||
logvisor::Module LogModule("hecl");
|
logvisor::Module LogModule("hecl");
|
||||||
static const std::string Illegals{"<>?\""};
|
constexpr std::string_view Illegals{"<>?\""};
|
||||||
|
|
||||||
void SanitizePath(std::string& path) {
|
void SanitizePath(std::string& path) {
|
||||||
if (path.empty())
|
if (path.empty())
|
||||||
@ -54,7 +54,7 @@ void SanitizePath(std::string& path) {
|
|||||||
path.pop_back();
|
path.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
static const std::wstring WIllegals{L"<>?\""};
|
constexpr std::wstring_view WIllegals{L"<>?\""};
|
||||||
|
|
||||||
void SanitizePath(std::wstring& path) {
|
void SanitizePath(std::wstring& path) {
|
||||||
if (path.empty())
|
if (path.empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user