Use fs::path for some implementations in Path

This commit is contained in:
Paweł Bylica 2019-11-19 15:40:15 +01:00
parent 45002d723a
commit 7e7e088d8e
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#include "../platform/platform.h"
#include "../util/Util.h"
#include "File.h"
#include "FileSystem.hpp"
#include "Memory.hpp"
#include "Path.hpp"
#include "String.hpp"
@ -143,7 +144,7 @@ namespace Path
const std::string GetExtension(const std::string& path)
{
return GetExtension(path.c_str());
return fs::path{ path }.extension().string();
}
const utf8* GetExtension(const utf8* path)