]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
fixed typo in wxString::swap() which was completely broken
[wxWidgets.git] / src / common / string.cpp
index d8a1d812b29b8990deb8c597db5227327d3cb815..80cf48d1629188ae18c492ddf884046fcd8e1575 100644 (file)
@@ -1651,7 +1651,7 @@ void wxString::swap(wxString& str)
     // ref count always stays positive
     wxString tmp = str;
     str = *this;
-    *this = str;
+    *this = tmp;
 }
 
 wxString& wxString::insert(size_t nPos, const wxString& str)