]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.cpp
Use a self-assignment to copy all members
[libs/core.git] / source / fs / path.cpp
index 241b2f8aeb938493f006d735f36a9f8f4c41e6ec..99bcc8bfe216b13101ce51f077ed12d7efd281d4 100644 (file)
@@ -89,7 +89,7 @@ Path Path::operator/(const Path &p) const
 Path &Path::operator/=(const Path &p)
 {
        if(p.is_absolute())
-               path = p.path;
+               *this = p;
        else
        {
                for(Iterator i=p.begin(); i!=p.end(); ++i)