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:
Vadim Zeitlin
2003-06-11 11:36:45 +00:00
parent d659d703ef
commit e135f09367
2 changed files with 56 additions and 64 deletions

View File

@@ -214,12 +214,8 @@ bool wxClipboard::IsOpened() const
bool wxClipboard::SetData( wxDataObject *data ) bool wxClipboard::SetData( wxDataObject *data )
{ {
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") ); // as we can only store one wxDataObject, this is the same in this
// implementation
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
Clear();
return AddData( data ); return AddData( data );
} }

View File

@@ -214,12 +214,8 @@ bool wxClipboard::IsOpened() const
bool wxClipboard::SetData( wxDataObject *data ) bool wxClipboard::SetData( wxDataObject *data )
{ {
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") ); // as we can only store one wxDataObject, this is the same in this
// implementation
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
Clear();
return AddData( data ); return AddData( data );
} }