From aa722bd8acaef2f2aaac4becadd91fd821edd512 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 13 Mar 2020 19:40:51 +0100 Subject: [PATCH] fs/Traits: use `auto` --- src/fs/Traits.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/Traits.cxx b/src/fs/Traits.cxx index 230d557d9..a75fecbd7 100644 --- a/src/fs/Traits.cxx +++ b/src/fs/Traits.cxx @@ -60,7 +60,7 @@ GetBasePathImpl(typename Traits::const_pointer p) noexcept assert(p != nullptr); #endif - typename Traits::const_pointer sep = Traits::FindLastSeparator(p); + auto sep = Traits::FindLastSeparator(p); return sep != nullptr ? sep + 1 : p; @@ -75,7 +75,7 @@ GetParentPathImpl(typename Traits::const_pointer p) noexcept assert(p != nullptr); #endif - typename Traits::const_pointer sep = Traits::FindLastSeparator(p); + auto sep = Traits::FindLastSeparator(p); if (sep == nullptr) return typename Traits::string(Traits::CURRENT_DIRECTORY); if (sep == p)