]> git.saurik.com Git - wxWidgets.git/commitdiff
remove redundant test
authorPaul Cornett <paulcor@bullseye.com>
Thu, 7 Dec 2006 07:20:56 +0000 (07:20 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 7 Dec 2006 07:20:56 +0000 (07:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/clipbrd.cpp

index 1bda9b97d245d9949f719bb751684c9c5e3fdde9..903cd48b712e265312c206a526af5be7d8ddc419 100644 (file)
@@ -395,11 +395,8 @@ void wxClipboard::Clear()
             while (m_waiting) gtk_main_iteration();
         }
 
-        if (m_data)
-        {
-            delete m_data;
-            m_data = (wxDataObject*) NULL;
-        }
+        delete m_data;
+        m_data = NULL;
 
 #if wxUSE_THREADS
         /* re-enable GUI threads */