Switching code to use FilePath.

This commit is contained in:
Branimir Karadžić
2017-07-14 23:05:44 -07:00
parent 6e252cf889
commit a95ec96256
8 changed files with 93 additions and 30 deletions

View File

@@ -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