From 87f78b9c39823f1a99724d3c165593f364faf981 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 13 Mar 2020 19:06:01 +0100 Subject: [PATCH] fs/Traits: use {} notation for return values --- src/fs/Traits.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fs/Traits.cxx b/src/fs/Traits.cxx index a75fecbd7..25d0b48c6 100644 --- a/src/fs/Traits.cxx +++ b/src/fs/Traits.cxx @@ -77,14 +77,14 @@ GetParentPathImpl(typename Traits::const_pointer p) noexcept auto sep = Traits::FindLastSeparator(p); if (sep == nullptr) - return typename Traits::string(Traits::CURRENT_DIRECTORY); + return Traits::CURRENT_DIRECTORY; if (sep == p) - return typename Traits::string(p, p + 1); + return {p, 1u}; #ifdef _WIN32 if (Traits::IsDrive(p) && sep == p + 2) - return typename Traits::string(p, p + 3); + return {p, 3u}; #endif - return typename Traits::string(p, sep); + return {p, sep}; } template