From 594b97feb1dd766e59e857b2c361fc672a27d509 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 14 Jul 2022 17:37:20 +0200 Subject: [PATCH] fs/Path: change cast syntax --- src/fs/AllocatedPath.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index f8999e201..c63f4fc03 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -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(); } /**