[ox/fs] Make FileAddress constructor take a StringLiteral
This commit is contained in:
@@ -65,7 +65,7 @@ class FileAddress {
|
||||
|
||||
explicit FileAddress(char *path) noexcept;
|
||||
|
||||
explicit constexpr FileAddress(const char *path) noexcept;
|
||||
constexpr FileAddress(ox::StringLiteral path) noexcept;
|
||||
|
||||
constexpr ~FileAddress() noexcept;
|
||||
|
||||
@@ -124,8 +124,8 @@ class FileAddress {
|
||||
|
||||
};
|
||||
|
||||
constexpr FileAddress::FileAddress(const char *path) noexcept {
|
||||
m_data.constPath = path;
|
||||
constexpr FileAddress::FileAddress(ox::StringLiteral path) noexcept {
|
||||
m_data.constPath = path.c_str();
|
||||
m_type = FileAddressType::ConstPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user