removed duplicate code from SetData(), just call AddData()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,12 +214,8 @@ bool wxClipboard::IsOpened() const
|
||||
|
||||
bool wxClipboard::SetData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
|
||||
Clear();
|
||||
|
||||
// as we can only store one wxDataObject, this is the same in this
|
||||
// implementation
|
||||
return AddData( data );
|
||||
}
|
||||
|
||||
|
@@ -214,12 +214,8 @@ bool wxClipboard::IsOpened() const
|
||||
|
||||
bool wxClipboard::SetData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
|
||||
Clear();
|
||||
|
||||
// as we can only store one wxDataObject, this is the same in this
|
||||
// implementation
|
||||
return AddData( data );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user