Remove unwanted CR characters from MSW OLE source file
Somehow recent changes to this file added CRs (^M) characters to the ends of some lines, remove them to avoid having a mix of Unix and DOS EOLs in the same file. No real changes.
This commit is contained in:
@@ -70,38 +70,38 @@ WXDLLEXPORT wxString wxConvertStringFromOle(BSTR bStr)
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxBasicString
|
// wxBasicString
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void wxBasicString::AssignFromString(const wxString& str)
|
void wxBasicString::AssignFromString(const wxString& str)
|
||||||
{
|
{
|
||||||
SysFreeString(m_bstrBuf);
|
SysFreeString(m_bstrBuf);
|
||||||
m_bstrBuf = SysAllocString(str.wc_str(*wxConvCurrent));
|
m_bstrBuf = SysAllocString(str.wc_str(*wxConvCurrent));
|
||||||
}
|
|
||||||
|
|
||||||
BSTR wxBasicString::Detach()
|
|
||||||
{
|
|
||||||
BSTR bstr = m_bstrBuf;
|
|
||||||
|
|
||||||
m_bstrBuf = NULL;
|
|
||||||
|
|
||||||
return bstr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BSTR* wxBasicString::ByRef()
|
BSTR wxBasicString::Detach()
|
||||||
{
|
{
|
||||||
|
BSTR bstr = m_bstrBuf;
|
||||||
|
|
||||||
|
m_bstrBuf = NULL;
|
||||||
|
|
||||||
|
return bstr;
|
||||||
|
}
|
||||||
|
|
||||||
|
BSTR* wxBasicString::ByRef()
|
||||||
|
{
|
||||||
wxASSERT_MSG(!m_bstrBuf,
|
wxASSERT_MSG(!m_bstrBuf,
|
||||||
wxS("Can't get direct access to initialized BSTR"));
|
wxS("Can't get direct access to initialized BSTR"));
|
||||||
return &m_bstrBuf;
|
return &m_bstrBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBasicString& wxBasicString::operator=(const wxBasicString& src)
|
wxBasicString& wxBasicString::operator=(const wxBasicString& src)
|
||||||
{
|
{
|
||||||
if ( this != &src )
|
if ( this != &src )
|
||||||
{
|
{
|
||||||
wxCHECK_MSG(m_bstrBuf == NULL || m_bstrBuf != src.m_bstrBuf,
|
wxCHECK_MSG(m_bstrBuf == NULL || m_bstrBuf != src.m_bstrBuf,
|
||||||
*this, wxS("Attempting to assign already owned BSTR"));
|
*this, wxS("Attempting to assign already owned BSTR"));
|
||||||
SysFreeString(m_bstrBuf);
|
SysFreeString(m_bstrBuf);
|
||||||
m_bstrBuf = src.Copy();
|
m_bstrBuf = src.Copy();
|
||||||
}
|
}
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user