]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
Add SizedControls demo.
[wxWidgets.git] / src / gtk / clipbrd.cpp
index 4444320855af76db02dd7cc4b83727ff325b316c..903cd48b712e265312c206a526af5be7d8ddc419 100644 (file)
@@ -37,7 +37,7 @@ extern GdkAtom g_altTextAtom;
 // the trace mask we use with wxLogTrace() - call
 // wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here
 // (there will be a *lot* of them!)
-static const wxChar *TRACE_CLIPBOARD = _T("clipboard");
+#define TRACE_CLIPBOARD _T("clipboard")
 
 //-----------------------------------------------------------------------------
 // reminder
@@ -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 */