fs/Traits: use auto
This commit is contained in:
parent
58c7ec07a4
commit
aa722bd8ac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user