wxBSTR cleanup: fixed a bug in wxBSTR::operator=(const wxBSTR& wxbstr); slightly improved comments in the code.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user