fs/Traits: improve compatibility between PathTraitsFS and PathTraitsUTF8

This commit is contained in:
Denis Krjuchkov
2013-12-05 04:01:29 +06:00
parent b397c46184
commit 403bd77eff
2 changed files with 14 additions and 9 deletions

View File

@@ -47,8 +47,8 @@ PathTraitsFS::Build(PathTraitsFS::const_pointer a, size_t a_size,
return result;
}
const char *
PathTraitsUTF8::GetBase(const char *p)
PathTraitsUTF8::const_pointer
PathTraitsUTF8::GetBase(PathTraitsUTF8::const_pointer p)
{
assert(p != nullptr);
@@ -58,8 +58,8 @@ PathTraitsUTF8::GetBase(const char *p)
: p;
}
std::string
PathTraitsUTF8::GetParent(const char *p)
PathTraitsUTF8::string
PathTraitsUTF8::GetParent(PathTraitsUTF8::const_pointer p)
{
assert(p != nullptr);