wxBSTR cleanup: fixed a bug in wxBSTR::operator=(const wxBSTR& wxbstr); slightly improved comments in the code.

This commit is contained in:
pbfordev
2017-06-17 08:52:48 +02:00
parent 82104e0e54
commit 3dd7d57bd4
2 changed files with 8 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ wxBSTR::wxBSTR(BSTR bstr, bool copy)
wxBSTR& wxBSTR::operator=(const wxBSTR& wxbstr)
{
if ( wxbstr != *this )
if ( this != &wxbstr )
{
Free();
m_bstr = wxbstr.GetCopy();