]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed typo in wxString::swap() which was completely broken
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Apr 2002 18:19:26 +0000 (18:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Apr 2002 18:19:26 +0000 (18:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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)