]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed compilation issue in prior checkin
authorDavid Surovell <davids@osafoundation.org>
Thu, 23 Mar 2006 00:41:09 +0000 (00:41 +0000)
committerDavid Surovell <davids@osafoundation.org>
Thu, 23 Mar 2006 00:41:09 +0000 (00:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dobjcmn.cpp

index 5ecf2fc08855bd0e915c6a7d356f657b7d72177d..dd27a6032d7f2d2b42d66786d55054fbb6b805ed 100644 (file)
@@ -247,8 +247,6 @@ bool wxTextDataObject::GetDataHere(const wxDataFormat& format, void *buf) const
         return false;
 
     wxCharBuffer buffer = GetConv(format).cWX2MB( GetText().c_str() );
-    if ( buffer == NULL )
-        return false;
 
     strcpy( (char*)buf, buffer );
 
@@ -262,8 +260,6 @@ bool wxTextDataObject::SetData(const wxDataFormat& format,
         return false;
 
     wxWCharBuffer buffer = GetConv(format).cMB2WX( (const char*)buf );
-    if ( buffer == NULL )
-        return false;
 
     SetText( buffer );