Switching code to use StringView.

This commit is contained in:
Branimir Karadžić
2017-10-01 18:03:25 -07:00
parent 82185277e4
commit c338725229
4 changed files with 87 additions and 65 deletions

View File

@@ -264,7 +264,7 @@ namespace bx
const StringView fileName = getFileName();
if (!fileName.isEmpty() )
{
const char* ext = strFind(fileName.getPtr(), '.', fileName.getLength() );
const char* ext = strFind(fileName, '.');
if (ext != NULL)
{
return StringView(fileName.getPtr(), ext);
@@ -279,7 +279,7 @@ namespace bx
const StringView fileName = getFileName();
if (!fileName.isEmpty() )
{
const char* ext = strFind(fileName.getPtr(), '.', fileName.getLength() );
const char* ext = strFind(fileName, '.');
return StringView(ext);
}