X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a18d02ecd20d33810e380605ee3ec641668176b6..67badd5753e70eb50de5ae43ff454e7c1f311e50:/include/wx/filename.h diff --git a/include/wx/filename.h b/include/wx/filename.h index 2cc5c75b8d..2887a3121b 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -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; }