fs/Path: change cast syntax

This commit is contained in:
Max Kellermann 2022-07-14 17:37:20 +02:00
parent cc0def15c4
commit 594b97feb1

View File

@ -268,11 +268,11 @@ public:
*/
[[gnu::pure]]
std::string ToUTF8() const noexcept {
return ((Path)*this).ToUTF8();
return Path{*this}.ToUTF8();
}
std::string ToUTF8Throw() const {
return ((Path)*this).ToUTF8Throw();
return Path{*this}.ToUTF8Throw();
}
/**
@ -281,7 +281,7 @@ public:
*/
[[gnu::pure]]
AllocatedPath GetDirectoryName() const noexcept {
return ((Path)*this).GetDirectoryName();
return Path{*this}.GetDirectoryName();
}
/**
@ -297,7 +297,7 @@ public:
[[gnu::pure]]
const_pointer GetSuffix() const noexcept {
return ((Path)*this).GetSuffix();
return Path{*this}.GetSuffix();
}
/**