]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for non OLE clipboard
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Oct 1999 14:53:47 +0000 (14:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Oct 1999 14:53:47 +0000 (14:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/clipbrd.cpp

index f31924940b5b95ea3d235c00f7876976c4dc9e70..043d879ae20ab390fae17289c7b20752c529e7d6 100644 (file)
@@ -446,6 +446,7 @@ void wxClipboard::Clear()
 
 bool wxClipboard::Flush()
 {
 
 bool wxClipboard::Flush()
 {
+#if wxUSE_OLE_CLIPBOARD
     if ( FAILED(OleFlushClipboard()) )
     {
         wxLogLastError("OleFlushClipboard");
     if ( FAILED(OleFlushClipboard()) )
     {
         wxLogLastError("OleFlushClipboard");
@@ -458,6 +459,9 @@ bool wxClipboard::Flush()
 
         return TRUE;
     }
 
         return TRUE;
     }
+#else // !wxUSE_OLE_CLIPBOARD
+    return FALSE;
+#endif // wxUSE_OLE_CLIPBOARD/!wxUSE_OLE_CLIPBOARD
 }
 
 bool wxClipboard::Open()
 }
 
 bool wxClipboard::Open()