No need to convert explicitly

This commit is contained in:
goeiecool9999 2022-09-08 13:52:12 +02:00 committed by klaas
parent b5153a6689
commit 9f2b5bf0f8

View file

@ -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;
}