From 9f2b5bf0f8706ec8258a4996e5f35bafd54accb0 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <> Date: Thu, 8 Sep 2022 13:52:12 +0200 Subject: [PATCH] No need to convert explicitly --- src/Cafe/Filesystem/FSPath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cafe/Filesystem/FSPath.cpp b/src/Cafe/Filesystem/FSPath.cpp index c1f603b5..9ddbaf02 100644 --- a/src/Cafe/Filesystem/FSPath.cpp +++ b/src/Cafe/Filesystem/FSPath.cpp @@ -4,7 +4,7 @@ FSPath operator/ (const FSPath& lhs, const FSPath& rhs) { FSPath res{lhs}; - res /= FSPath{rhs}; + res /= rhs; return res; } @@ -56,7 +56,7 @@ FSPath& FSPath::operator/= (const FSPath & rhs) } } - *this = FSPath(correctedPath); + *this = correctedPath; return *this; }