]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/filename.h
build fixes for wxUSE_IPV6==1 under Windows
[wxWidgets.git] / include / wx / filename.h
index 2cc5c75b8de7ab2f50a22f5a112fc1150fe9aec5..2887a3121b7bc0fd491f4a04ae4ada3a2a574853 100644 (file)
@@ -175,7 +175,7 @@ public:
         // assorted assignment operators
 
     wxFileName& operator=(const wxFileName& filename)
-        { Assign(filename); return *this; }
+        { if (this != &filename) Assign(filename); return *this; }
 
     wxFileName& operator=(const wxString& filename)
         { Assign(filename); return *this; }