X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41b2e0e6db70a6615e23cc1fc72e966275c9041b..ab0d42f76d5594bd28fdcad35bedeb380902f3ea:/src/common/string.cpp?ds=sidebyside diff --git a/src/common/string.cpp b/src/common/string.cpp index d8a1d812b2..80cf48d162 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -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)