mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 21:13:02 +01:00
Switching code to use FilePath.
This commit is contained in:
@@ -133,11 +133,22 @@ namespace bx
|
||||
set("");
|
||||
}
|
||||
|
||||
FilePath::FilePath(const char* _rhs)
|
||||
{
|
||||
set(_rhs);
|
||||
}
|
||||
|
||||
FilePath::FilePath(const StringView& _filePath)
|
||||
{
|
||||
set(_filePath);
|
||||
}
|
||||
|
||||
FilePath& FilePath::operator=(const StringView& _rhs)
|
||||
{
|
||||
set(_rhs);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void FilePath::set(const StringView& _filePath)
|
||||
{
|
||||
normalizeFilePath(
|
||||
@@ -148,9 +159,9 @@ namespace bx
|
||||
);
|
||||
}
|
||||
|
||||
const StringView FilePath::get() const
|
||||
const char* FilePath::get() const
|
||||
{
|
||||
return StringView(m_filePath);
|
||||
return m_filePath;
|
||||
}
|
||||
|
||||
const StringView FilePath::getPath() const
|
||||
|
||||
Reference in New Issue
Block a user