mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 21:13:02 +01:00
Switching code to use StringView.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user